Skip to content

Commit

Permalink
Merge pull request #94 from imjohnbo/update-scorecards-action
Browse files Browse the repository at this point in the history
Update scorecards.yml
  • Loading branch information
imjohnbo authored Nov 2, 2023
2 parents 3d96848 + e5e9ae1 commit 7f7091f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Scorecards supply-chain security
on:
workflow_dispatch:
# Only the default branch is supported.
branch_protection_rule:
schedule:
Expand All @@ -19,6 +20,7 @@ jobs:
security-events: write
actions: read
contents: read
id-token: write

steps:
- name: "Checkout code"
Expand All @@ -27,13 +29,10 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@c1aec4ac820532bab364f02a81873c555a0ba3a1 # v1.0.4
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
# Read-only PAT token. To create it,
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# Publish the results to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories, `publish_results` will automatically be set to `false`,
Expand Down

0 comments on commit 7f7091f

Please sign in to comment.