Skip to content

Commit

Permalink
Add OpenSSF scorecard gh action
Browse files Browse the repository at this point in the history
Signed-off-by: Fiachra Corcoran <[email protected]>
  • Loading branch information
efiacor committed Feb 21, 2025
1 parent 254bf73 commit cea3b53
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/openssf_scorecard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: OpenSSF Scorecard

# Declare default permissions as read only.
permissions: read-all

on:
schedule:
- cron: '30 1 * * 6'
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analysis:
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Run analysis
uses: ossf/[email protected]
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Upload artifact
uses: actions/[email protected]
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to code-scanning
uses: github/codeql-action/[email protected]
with:
sarif_file: results.sarif
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cea3b53

Please sign in to comment.