harden-github-actions
Harden GitHub Actions CI/CD workflows for supply-chain security — SHA-pin actions, least-privilege token permissions, verified toolchain installs, OpenSSF Scorecard, and SLSA provenance. Use when adding or auditing GitHub Actions workflows, before making a repository public, when
Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
Maintenance
fresh
1d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
14
58/100 Quality · 67/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
14 GitHub stars
Repo activity
14 stars, 0 forks
Maintenance
1d since push
License
MIT
Install
npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
Install safety
standard package or runtime install path
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Review before production
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: secrets or environment access, shell or command execution
- GitHub adoption: 14 GitHub stars
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- GitHub automation workflows
- Claude Code teams
- builders willing to evaluate younger projects
- Inspect repository metadata
Suited agents
Install decision
- Command
- npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
- Policy
- block
- Human review
- yes
Trust and risk
- Trust
- 59/100
- Audit
- 73/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actionsDo not use when
- teams that need a vendor-supported SLA
- production agents without a repository review
- Low GitHub adoption signal
- High-risk permission hints: Shell or command execution, Secrets or environment access
- Dependency or permission surface needs review
Agent safety v2
33/100 · Avoid automatic install
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Shell or command execution
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
high
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
- High-risk permission hints: Shell or command execution, Secrets or environment access
- Dependency or permission surface needs review
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install jrjsmrtn-harden-github-actionsAgent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20harden-github-actions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20harden-github-actions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jrjsmrtn-harden-github-actions/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
Task: Use harden-github-actions in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20harden-github-actions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jrjsmrtn-harden-github-actions/install
Install command: npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jrjsmrtn-harden-github-actions/install
LLM text format
/api/skills/jrjsmrtn-harden-github-actions/install?format=text
Find alternatives
/api/skills/search?q=harden-github-actions&limit=3
Agent prompt
Use harden-github-actions for this task. Review https://www.openagentskill.com/api/skills/jrjsmrtn-harden-github-actions/install, then install with: npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actionsRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jrjsmrtn-harden-github-actions
LLM text
/api/registry/manifest/jrjsmrtn-harden-github-actions?format=text
Install alias
/api/registry/install/jrjsmrtn-harden-github-actions
Recommend
/api/registry/recommend?task=Use%20harden-github-actions%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
Needs review · 73/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Fallback candidate for GitHub automation
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
GitHub automation
Trust label
Prototype first
Install path
Command ready
Use when
- GitHub automation workflows
- Claude Code teams
- builders willing to evaluate younger projects
Evidence
- recent repository activity
- install command or GitHub repo available
- 58/100 quality profile
- 3 OpenAgentSkill engagement events
review first
- Low GitHub adoption signal
Implementation path
- 1Install it in a sandbox agent and run one GitHub automation task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Do not auto-install
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
FIX14 GitHub stars
Stars/forks activity
FIX14 stars, 0 forks; issue activity unavailable in current metadata
Recent maintenance
PASS1d since push
License clarity
PASSMIT
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: secrets or environment access, shell or command execution
- GitHub adoption: 14 GitHub stars
- Stars/forks activity: 14 stars, 0 forks; issue activity unavailable in current metadata
- Dependency/runtime risk: command execution surface, credential or environment access
- Permission surface: secrets or environment access, shell or command execution
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Promising candidate for agent workflows
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Use this skill in these scenarios
Manage repositories
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Automate repeated work
Workflow automation
I need my agent to automate a repeated workflow across tools and files.
Workflow fit
Add it to a complete workflow
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
Content growth agent
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
Maigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
Overview
--- name: harden-github-actions description: Harden GitHub Actions CI/CD workflows for supply-chain security — SHA-pin actions, least-privilege token permissions, verified toolchain installs, OpenSSF Scorecard, and SLSA provenance. Use when adding or auditing GitHub Actions workflows, before making a repository public, when a supply-chain review flags CI gaps, or when standardizing CI hardening across GitHub projects. GitHub-specific by design — GitLab CI and Forgejo Actions are out of scope. metadata: author: "Georges Martin <jrjsmrtn@gmail.com>" version: "0.1.34" license: MIT ---
# Harden GitHub Actions
Harden GitHub Actions CI/CD workflows against supply-chain attack: pin what runs, minimise what it can do, and verify what it fetches.
> **GitHub-specific by design.** Unlike most orchestration skills, this one is deliberately bound to > one forge. The hardening controls below are not portable concepts wearing GitHub syntax — they are > properties of the GitHub Actions execution model itself: third-party actions resolved by mutable > git ref, an ambient `GITHUB_TOKEN` with **repository-wide default scopes**, and OIDC-backed SLSA > provenance. It has a **sibling**, `harden-gitlab-ci`, which is not a translation of this skill: > GitLab's risks sit in different places (`include:`/CI-Catalog components, and a `CI_JOB_TOKEN` that > defaults to *own-project-only* — so there the work is keeping it scoped, the opposite posture from > here). Forgejo Actions is Actions-compatible in shape but resolves actions against its instance's > configured registry, so pinning guidance does not transfer unchanged (roadmap H9).
## When to Use
- When adding GitHub Actions workflows to a project (after `setup-git-hooks`) - When auditing existing `.github/workflows/` before making a repository public - When a supply-chain review (or the `supply-chain` skill) flags CI hardening gaps - When standardising CI hardening across GitHub projects
**Not for:** GitLab CI — use `harden-gitlab-ci`. Not for Forgejo/Gitea Actions — the controls do not carry over unchanged. Say so rather than approximating.
This skill *hardens* CI workflows. `validate-quality-config` only *reads* CI to confirm parity with local hooks — it does not check pinning, permissions, or provenance. The two are complementary.
## Required Inputs
1. **Workflow files** — the project's `.github/workflows/*.yml` 2. **Release model** — does the project publish artifacts/images/packages (needs provenance + signing), or is it internal-only? 3. **Repository visibility** — public or private (affects Scorecard `publish_results` and OSSF publishing)
## The Threat
A CI job runs third-party code (actions, installed tools) with a `GITHUB_TOKEN` and often OIDC. A mutable action tag (`@v4`) can be repointed to malicious code; an over-privileged token can push commits, publish packages, or exfiltrate secrets; an unverified `curl | sh` install can be swapped upstream. Hardening closes all three: **pin**, **least-privilege**, **verify**.
## Workflow
### Step 1: Inventory and triage
Find every workflow and the hardening gaps in it:
```bash ls .github/workflows/ # Mutable action refs (should be zero — all must be SHA-pinned): grep -rnE 'uses:.*@(v[0-9]|main|master|latest)' .github/workflows/ # Workflows missing a top-level permissions block: for f in .github/workflows/*.yml; do grep -q '^permissions:' "$f" || echo "no permissions: $f"; done # Floating tool versions: grep -rnE 'version:\s*latest|@latest' .github/workflows/ ```
Aim for a clean 3-way split: **`ci.yml`** (lint/test/build on push + PR), **`scorecard.yml`** (OpenSSF Scorecard on a schedule), and — only if the project ships artifacts — **`release.yml`** (SBOM + SLSA provenance + signing).
### Step 2: SHA-pin every action
Pin every `uses:` to a **full 40-character commit SHA** with a trailing `# vX.Y.Z` comment for readability. Never rely on a mutable tag.
```yaml # Good — immutable, human-readable, Dependabot-updatable - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 - uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
# Bad — mutable tag, can be repointed upstream - uses: actions/checkout@v4 ```
Resolve a tag to its commit SHA:
```bash gh api repos/actions/checkout/commits/v4.2.2 --jq '.sha' ```
Keep pins current automatically with a Dependabot `github-actions` update block (see `bootstrap-project` / the dependency-update config). Dependabot preserves the `# vX.Y.Z` comment when it bumps a SHA.
**The one sanctioned exception**: reusable workflows that verify their own release tag — notably `slsa-framework/slsa-github-generator` — **must** be referenced by semantic version tag, not SHA (see Step 7). Document the exception in an ADR and in a comment on the line.
### Step 3: Least-privilege token permissions
Set a read-only default at the top of every workflow, then elevate **per job** only where a job genuinely needs to write.
```yaml # top of the workflow permissions: contents: read ```
Elevate narrowly, in the specific job:
```yaml jobs: # OpenSSF Scorecard analysis: permissions: security-events: write # upload the SARIF result id-token: write # publish results to the OSSF API contents: read
# Release provenance / publish provenance: permissions: actions: read # read the workflow path id-token: write # mint the OIDC token for signing contents: write # attach provenance to the release # packages: write # add only if publishing to GHCR / a registry ```
Rule of thumb: default `contents: read`; add `id-token: write` only for OIDC signing/publish; add `contents: write` only for jobs that create releases/tags; add `packages: write` only for registry publish; add `security-events: write` only for SARIF upload.
### Step 4: Harden the checkout
On any workflow that runs with elevated permissions or handles releases (Scorecard, release), stop the checkout from leaving credentials on disk:
```yaml - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false ```
### Step 5: Verify what you install
Every tool a job installs is attack surface. In order of preference:
1. **SHA-pinned setup action** (best) — toolchains via pinned actions: ```yaml - uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 with: { distribution: temurin, java-version: "21" } - uses: xu-cheng/texlive-action@22c04326a5d855880f9d39bb955138bf11c6df80 # v3 ``` 2. **Pinned version + checksum verification** for a downloaded binary: ```yaml - run: | curl -fsSL -o tool.tar.gz "https://example.com/tool/v1.2.3/tool.tar.gz" echo "abc123... tool.tar.gz" | sha256sum -c - tar xzf tool.tar.gz ``` 3. **Pinned package version** for distro/language packages.
Anti-patterns to eliminate (all seen in real workflows):
```yaml - run: luarocks install luacheck # no version pin - run: apt-get install -y -qq pandoc # unversioned distro package with: { version: latest } # floating action release - run: curl -fsSL https://x/install.sh | sh # unverified remote script — never ```
Digest-pin any container image referenced in a `run`/service step (`image@sha256:…`, not `:latest`); base-image and artifact-checksum hardening for the images themselves belongs to `setup-container-security`.
### Step 6: OpenSSF Scorecard
Add a Scorecard workflow to continuously grade the repo's supply-chain posture. Canonical `scorecard.yml`:
```yaml name: Scorecard on: branch_protection_rule: schedule: - cron: "26 7 * * 1" # weekly, Mondays workflow_dispatch:
permissions: read-all
jobs: analysis: runs-on: ubuntu-latest permissions: security-events: write # upload the SARIF result id-token: write # publish results to the OSSF API contents: read steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 with: results_file: results.sarif results_format: sarif publish_results: true # requires a PUBLIC repo; keep false while private - uses: github/codeql-action/upload-sarif@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3 with: sarif_file: results.sarif ```
On a **private** repo set `publish_results: false` — but note that several Scorecard *checks* also fail to run while private (`Resource not accessible by integration`); prefer gating the whole job on visibility so it self-activates at the public gate (see **Step 7b**).
**Scorecard grades the default branch — mind gitflow.** Scorecard's content analysis runs against the repository's **default branch** (a `workflow_dispatch` against another ref is refused with `only default branch is supported` — observed directly). If the project follows the gitflow that `bootstrap-project` sets up, `develop` is the default, so the published score describes the **integration** branch, not the `main` that releases are cut from — the repo is graded on a branch its consumers never fetch. The one documented exception is the **`Branch-Protection`** check, which evaluates a project's *default **and** release* branches (verified against the Scorecard docs); the content-analysis checks (`Pinned-Dependencies`, `Dangerous-Workflow`, `Token-Permissions`, …) do not. Two honest resolutions: accept that `develop` is graded and protect/harden it accordingly, or make `main` the default and treat `develop` as a long-lived branch. Pick one on purpose — this gap lives only where the gitflow recommendation and the Scorecard workflow meet, so neither skill alone would surface it.
### Step 7: Release provenance (if the project ships artifacts)
For projects that publish artifacts/images/packages, attach SLSA build provenance at release. Hash the build outputs, then hand off to the generator — referenced **by tag** (the sanctioned exception to Step 2):
```yaml provenance: # MUST run after the job that creates the release: with upload-assets:true the generator # creates the release itself when absent, racing publish and producing a bare, notesless one. needs: [build, publish] permissions: actions: read id-token: write contents: write # slsa-github-generator MUST be tag-pinned (it verifies its own release tag) — the # documented exception to the SHA-pin rule; record it in an ADR. uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0 with: base64-subjects: ${{ needs.build.outputs.hashes }} upload-assets: true ```
Provenance, SBOM (syft), and keyless signing (cosign) at release time are owned by `wrapup-sprint`'s release step — this skill wires the workflow permissions and the tag-pin exception that make them safe. Note the `needs: [build, publish]` above: because `upload-assets: true` makes the generator *create* the release when it runs first, provenance must follow the job that publishes it with changelog notes — the idempotent create-release step is detailed in `wrapup-sprint`.
### Step 7b: Private repositories — gate visibility-sensitive controls
Several controls above behave differently while the repo is private, for **two distinct reasons** — *cannot run* and *should not run* — and neither is obvious until you run them (the failures arrive at the first scheduled Scorecard run and Dependabot's first PR). The honest default is to **self-activate them at the public gate** rather than leave a manual step to remember. Gate the job (or step) on visibility:
```yaml if: ${{ !github.event.repository.private }} # runs only when the repo is public ```
| Con
Technical details
- Version
- 1.0.0
- License
- MIT
- Last updated
- Aug 21, 2026
- Published
- Aug 21, 2026
Decision snapshot
Fallback candidate
recent repository activity
Audit
Install review
Install and adoption review
- Security
- 73/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for harden-github-actions, ready for a manual X post.
harden-github-actions: Harden GitHub Actions CI/CD workflows for supply-chain security — SHA-pin actions, least-priv... 14 stars https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions?ref=x
Optional reply with install command
Listing + install path for harden-github-actions: https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions?ref=x Install: npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- jrjsmrtn
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to jrjsmrtn but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions)
[](https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions)
[](https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions/audit)
[](https://www.openagentskill.com/skills/jrjsmrtn-harden-github-actions)Author
jrjsmrtn
@jrjsmrtn
Tags
Platform fit
Health signals
- GitHub stars
- 14
- Quality score
- 32/100
- Last GitHub push
- Aug 21, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 3
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Do not auto-install
- GitHub adoption14 GitHub starsFIX
- Stars/forks activity14 stars, 0 forks; issue activity unavailable in current metadataFIX
- Recent maintenance1d since pushPASS
- License clarityMITPASS
- README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
- Dependency/runtime riskcommand execution surface, credential or environment accessFIX
Related skills
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K Stars