Skip to content

tbowman01/scorecard-installer-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSSF Scorecard Installer Action Logo

OpenSSF Scorecard Installer Action

Automate security scoring for your GitHub repositories

License GitHub issues GitHub closed issues GitHub PRs GitHub closed PRs

🚀 Quick Start

See YOLO-README.md for the fastest way to get started

🚀 What It Does

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)

📦 Usage

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"

🎛 Inputs

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


🧪 Test Locally with act

act -j install-scorecard

🔧 How to Install act

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.


📌 Notes

  • 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

📥 Coming Soon

  • GitHub Marketplace listing
  • Scorecard dashboard link
  • Multi-repo install orchestrator

👤 Author

Trevor Bowmangithub.com/tbowman01

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •