Skip to content

Commit

Permalink
Only generate sarif, and execute on PRs+merge
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed Apr 19, 2024
1 parent f31aaee commit 46cd5bb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- cron: '29 9 * * 4'
push:
branches: [ "main" ]
pull_request:

# Declare default permissions as read only.
permissions: read-all
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true
publish_results: false

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

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

0 comments on commit 46cd5bb

Please sign in to comment.