Skip to content

Commit

Permalink
Use GitHub app for scorecard
Browse files Browse the repository at this point in the history
Use a GitHub app to get a token so that we can run a more detailed scan with the scorecard tool.
  • Loading branch information
martincostello committed Oct 24, 2023
1 parent 1e2bb36 commit 37e56fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: ossf-scorecard

on:
branch_protection_rule:
push:
branches: [ main ]
schedule:
Expand All @@ -25,10 +26,19 @@ jobs:
with:
persist-credentials: false

- name: Get application token
id: get-application-token
uses: peter-murray/workflow-application-token-action@8e1ba3bf1619726336414f1014e37f17fbadf1db # v2.1.0
with:
application_id: ${{ vars.JET_GITHUB_APPLICATION_ID }}
application_private_key: ${{ secrets.JET_GITHUB_SECRET_KEY }}
organization: ${{ github.repository_owner }}

- name: Run analysis
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
publish_results: true
repo_token: ${{ steps.get-application-token.outputs.token }}
results_file: results.sarif
results_format: sarif

Expand Down

0 comments on commit 37e56fb

Please sign in to comment.