Skip to content

Commit 4fa5edd

Browse files
committed
Only generate sarif, and execute on PRs+merge
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
1 parent e262bce commit 4fa5edd

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- cron: '29 9 * * 4'
1414
push:
1515
branches: [ "main" ]
16+
pull_request:
1617

1718
# Declare default permissions as read only.
1819
permissions: read-all
@@ -54,7 +55,7 @@ jobs:
5455
# For private repositories:
5556
# - `publish_results` will always be set to `false`, regardless
5657
# of the value entered here.
57-
publish_results: true
58+
publish_results: false
5859

5960
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6061
# format to the repository Actions tab.
@@ -66,7 +67,7 @@ jobs:
6667
retention-days: 5
6768

6869
# Upload the results to GitHub's code scanning dashboard.
69-
- name: "Upload to code-scanning"
70-
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
71-
with:
72-
sarif_file: results.sarif
70+
#- name: "Upload to code-scanning"
71+
# uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
72+
# with:
73+
# sarif_file: results.sarif

0 commit comments

Comments
 (0)