harden-ci-workflows

Harden GitHub Actions workflows with SHA-pinned actions and least-privilege permissions.

12|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/jrjsmrtn/project-orchestration-skills --skill harden-ci-workflows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harden-ci-workflows
Source: https://github.com/jrjsmrtn/project-orchestration-skills/tree/main/skills/harden-ci-workflows
Command: npx skills add https://github.com/jrjsmrtn/project-orchestration-skills --skill harden-ci-workflows

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enhances the security and compliance of your GitHub Actions CI/CD workflows, protecting against supply-chain attacks, minimizing permissions, and ensuring verified toolchain usage.

Core Features & Use Cases

  • Supply-Chain Security:SHA-pin actions and ensure toolchain verifications for protection against tampering and supply-chain vulnerabilities.
  • Permission Minimization:Enforce least-privilege permissions to limit job write access and secure the 'GITHUB_TOKEN' and OIDC credentials.
  • Verification:Validate that tools and container images are securely installed with checksums or by using pinned actions.
  • Use Case:For any project adding or auditing CI workflows before going public, where a supply-chain review highlights CI vulnerabilities or when standardizing CI hardening.

Quick Start

Run the skill to harden the CI/CD workflows of your project, ensuring security measures like SHA-pinning actions, minimizing permissions, and verified toolchain installations.

Frequently Asked Questions about harden-ci-workflows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure GitHub Actions workflows against supply-chain attacks?

To secure GitHub Actions workflows against supply-chain attacks, you need to SHA-pin third-party actions, enforce least-privilege token permissions, and verify toolchain installations. This hardening process minimizes write access and ensures artifact integrity.

What is OpenSSF Scorecard posture grading for CI/CD security?

OpenSSF Scorecard posture grading for CI/CD security is an assessment mechanism that evaluates your project's security posture. It grades your hardened workflows to validate that permissions are minimized and supply-chain risks are actively mitigated.

How do I set least-privilege permissions for the GITHUB_TOKEN in CI pipelines?

To set least-privilege permissions for the GITHUB_TOKEN in CI pipelines, you must configure token scopes to limit job write access. This CI hardening technique restricts credentials and secures OIDC tokens from unauthorized modifications.

Why do I need SLSA provenance for GitHub Actions artifact integrity?

You need SLSA provenance for GitHub Actions artifact integrity to generate verifiable metadata about how artifacts were built. Applying SLSA provenance ensures tamper protection by cryptographically linking build artifacts to their specific verified toolchain and workflow.

Can I use this CI hardening process for auditing existing workflows before going public?

Yes, you can use this CI hardening process for auditing existing workflows before going public. It standardizes security by reviewing third-party actions, validating verified toolchain installs, and addressing vulnerabilities highlighted during a supply-chain review.

What is the best way to verify toolchain installations and container images in GitHub Actions?

The best way to verify toolchain installations and container images in GitHub Actions is by validating checksums or using pinned actions. This verification method ensures securely installed tools and protects your CI/CD pipeline from tampering.