forked from nephio-project/porch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nephio-project#185 from Nordix/add_ossf_scorecard_…
…gh_action Add OpenSSF scorecard gh action
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|