Skip to content

Commit

Permalink
Introduce OpenSSF Scorecard GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Apr 8, 2023
1 parent ae22e0e commit d95cd72
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: OpenSSF Scorecard update
on:
# XXX: Drop PR builds after testing.
pull_request:
push:
branches: [ master ]
schedule:
- cron: '0 4 * * 1'
permissions:
contents: read
id-token: write
security-events: write
jobs:
analyze:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
# XXX: Also apply elsewhere?
with:
persist-credentials: false
- name: Run OpenSSF Scorecard analysis
uses: ossf/[email protected]
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Update GitHub's code scanning dashboard
uses: github/codeql-action/[email protected]
with:
sarif_file: results.sarif

0 comments on commit d95cd72

Please sign in to comment.