Skip to content

Commit

Permalink
Merge pull request nephio-project#185 from Nordix/add_ossf_scorecard_…
Browse files Browse the repository at this point in the history
…gh_action

Add OpenSSF scorecard gh action
  • Loading branch information
radoslawc authored Feb 21, 2025
2 parents 254bf73 + cea3b53 commit f48bbc2
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 f48bbc2

Please sign in to comment.