forked from mloesch/sickle
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add openssf scorecard analysis workflow
Fixes: #67
- Loading branch information
1 parent
204b7a9
commit 24b9f1c
Showing
2 changed files
with
47 additions
and
1 deletion.
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,44 @@ | ||
# This CI job is adapted from: | ||
# Scorecards' GitHub action (2013-09-12), Apache License 2.0 | ||
# Ref: https://github.com/ossf/scorecard-action/blob/8d9d91b01b9389de406141fb47b98726a399e1ea/README.md?plain=1#L198 | ||
|
||
name: Scorecard analysis | ||
on: | ||
# Only the default branch is supported. | ||
branch_protection_rule: | ||
schedule: | ||
# run once a month at midnight of the first day of the month | ||
- cron: 0 0 1 * * | ||
push: | ||
branches: [main] | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
analysis: | ||
name: Scorecard analysis | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
# Needed if using Code scanning alerts | ||
security-events: write | ||
# Needed for GitHub OIDC token if publish_results is true | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
persist-credentials: false | ||
# Ref: https://github.com/ossf/scorecard-action | ||
- name: Run scorecard analysis | ||
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3 | ||
with: | ||
results_file: results.sarif | ||
results_format: sarif | ||
# Ref: https://github.com/ossf/scorecard-action#publishing-results. | ||
publish_results: true | ||
|
||
# # required for Code scanning alerts | ||
# - name: "Upload SARIF results to code scanning" | ||
# uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6 | ||
# with: | ||
# sarif_file: results.sarif |
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