harden-github-actions

Solid

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.

Code & Development 15 stars 0 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
40
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 ...

Details

Author
jrjsmrtn
Repository
jrjsmrtn/project-orchestration-skills
Created
8 months ago
Last Updated
1 weeks ago
Language
N/A
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

harden-gitlab-ci

Harden GitLab CI/CD pipelines for supply-chain security — SHA-pin `include:` and CI/CD components, scope the `CI_JOB_TOKEN` allowlist, protect and mask variables, pin job image digests, and use `id_tokens`/OIDC instead of long-lived secrets. Use when adding or auditing a `.gitlab-ci.yml`, before making a GitLab project public, when a supply-chain review flags CI gaps, or when standardizing pipeline hardening across GitLab projects (gitlab.com or self-hosted). GitLab-specific by design — for GitHub Actions use `harden-github-actions`; Forgejo/Gitea Actions are out of scope.

15 Updated 1 weeks ago
jrjsmrtn
AI & Automation Listed

oss-harden

Harden the security posture of an open source repository: pin CI actions to full commit SHAs, restrict workflow permissions, keep untrusted input out of shell commands, enable automated dependency updates, lock dependency resolution, run static analysis on pull requests, detect committed secrets before they reach the default branch, watch every shipped dependency ecosystem for known vulnerabilities, configure branch protection, enforce code owner review, and sign tags. Use when the user asks to harden a repo, improve supply chain security, fix an OpenSSF Scorecard finding, pin actions, fix a workflow script injection, enable secret scanning or push protection, turn on dependency vulnerability alerts, or lock down CI. Covers GitHub and GitLab. Publishing belongs to oss-publish.

1 Updated yesterday
svyatov
AI & Automation Listed

github-actions-supply-chain

Use when reviewing GitHub Actions workflow files for security issues, hardening CI pipelines, or assessing supply chain risk in a repository that uses GitHub Actions

103 Updated 2 weeks ago
Habitat-Thinking