Add Scorecard workflow for supply-chain security#57
Open
cidrblock wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an OpenSSF Scorecard GitHub Actions workflow to run periodic and on-change supply-chain security checks and publish results to GitHub code scanning.
Changes:
- Introduces
.github/workflows/scorecard.ymlto run Scorecard onpushtomain, weeklyschedule, andbranch_protection_ruleevents. - Uploads SARIF output both as a workflow artifact and to GitHub’s code scanning dashboard.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+26
to
+33
| permissions: | ||
| # Needed to upload the results to code-scanning dashboard. | ||
| security-events: write | ||
| # Needed to publish results and get a badge (see publish_results below). | ||
| id-token: write | ||
| # Uncomment the permissions below if installing in a private repository. | ||
| # contents: read | ||
| # actions: read |
Comment on lines
+24
to
+25
| # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. | ||
| if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' |
Comment on lines
+75
to
+76
| - name: "Upload to code-scanning" | ||
| uses: github/codeql-action/upload-sarif@v3 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new GitHub Actions workflow to enhance supply-chain security by integrating the OpenSSF Scorecard analysis into the CI/CD pipeline. The workflow is designed to run on the main branch and on a scheduled basis, ensuring ongoing security checks and visibility via GitHub's code scanning dashboard.
Supply-chain security automation:
.github/workflows/scorecard.ymlworkflow that runs the OpenSSF Scorecard analysis on pushes to the main branch and on a weekly schedule. The workflow uploads results as artifacts and to GitHub's code scanning dashboard, helping to monitor and improve repository security practices.