See YOLO-README.md for the fastest way to get started
This GitHub Action installs the OpenSSF Scorecard workflow and badge into a target repository. It automates:
- Adding the Scorecard GitHub Action workflow to
.github/workflows/scorecards.yml
- Injecting the OpenSSF badge into the top of
README.md
- Creating a pull request with the changes (unless
dry_run
is enabled)
name: Install OpenSSF Scorecard
on:
workflow_dispatch:
jobs:
install-scorecard:
runs-on: ubuntu-latest
steps:
- name: Use Scorecard Installer
uses: ./.github/actions/scorecard-installer
with:
repo_url: https://github.com/YOUR_ORG/YOUR_REPO
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: false
cron: "15 14 * * 5"
Name | Required | Default | Description |
---|---|---|---|
repo_url |
✅ Yes | — | URL of the target GitHub repository |
branch |
❌ No | main |
Branch to base the PR from |
github_token |
✅ Yes | — | Token with repo and workflow scopes |
dry_run |
❌ No | false |
If true , simulates changes without creating PR |
cron |
❌ No | '15 14 * * 5' |
Custom cron for the scheduled Scorecard scan |
act -j install-scorecard
If act
is not already installed, follow these steps:
For macOS (Homebrew):
brew install act
For Linux:
curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
For Windows (Scoop):
scoop install act
Or download from the releases page and place it in your system's PATH.
- Requires a GitHub token with write access to the target repo
- Will skip PR creation if no changes are detected
- Can be reused in org-wide workflows
- GitHub Marketplace listing
- Scorecard dashboard link
- Multi-repo install orchestrator
Trevor Bowman — github.com/tbowman01