Skip to content

Add Scorecard workflow for supply-chain security#57

Open
cidrblock wants to merge 2 commits into
mainfrom
cidrblock-patch-1
Open

Add Scorecard workflow for supply-chain security#57
cidrblock wants to merge 2 commits into
mainfrom
cidrblock-patch-1

Conversation

@cidrblock

Copy link
Copy Markdown
Collaborator

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:

  • Added a .github/workflows/scorecard.yml workflow 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.

Copilot AI review requested due to automatic review settings June 17, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml to run Scorecard on push to main, weekly schedule, and branch_protection_rule events.
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants