# SecureCI > SecureCI helps platform and security teams see and govern every GitHub Actions workflow across an organisation: an inventory of workflows and third-party actions, checks against the organisation's own pipeline standards, and alerts when something drifts (such as an action tag that starts pointing at different code). It is built on the free, open-source SecureCI CLI (`@secureci/cli`, command `secureci`, MIT license), which runs GitHub Actions workflows locally, validates them against pipeline contracts, and catches action supply-chain drift with a lockfile. Key facts: - The SecureCI CLI is free and open source (MIT). Install with `npm install -g @secureci/cli` (Node.js 20+), or download a standalone binary for Linux, macOS or Windows from the GitHub releases, with SHA256 checksums and a build provenance attestation (since v0.6.0). To run workflows it needs Docker, Podman or containerd (nerdctl). - Install the standalone binary on Linux or macOS with `curl -fsSL https://secure-ci.dev/install.sh | sh`: it checks SHA256SUMS, verifies build provenance when the GitHub CLI is signed in, falls back to the GitHub API (with retries) when a release download link fails, and installs to ~/.local/bin without sudo (`SECURECI_VERSION`, `SECURECI_INSTALL_DIR`, `SECURECI_REQUIRE_ATTESTATION=1`). Source: https://github.com/secure-ci/cli/blob/main/install.sh - Standalone binary downloads (always the latest release; verify with SHA256SUMS before running): Linux x64 https://github.com/secure-ci/cli/releases/latest/download/secureci-linux-x64, Linux arm64 https://github.com/secure-ci/cli/releases/latest/download/secureci-linux-arm64, macOS Apple silicon https://github.com/secure-ci/cli/releases/latest/download/secureci-darwin-arm64, macOS Intel https://github.com/secure-ci/cli/releases/latest/download/secureci-darwin-x64, Windows x64 https://github.com/secure-ci/cli/releases/latest/download/secureci-win-x64.exe, checksums https://github.com/secure-ci/cli/releases/latest/download/SHA256SUMS. All releases: https://github.com/secure-ci/cli/releases - `secureci run` runs a workflow locally, one container per job, with independent jobs and matrix combinations in parallel (`--parallel`); `secureci run --dry-run` shows what would run without executing anything. `--matrix key:value` runs a subset of matrix combinations, and `--env-file`, `--secret-file`, `--input-file` and `--var-file` read values from .env-style files (since v0.6.0). Since v0.8.0, container mode mounts the working copy's `.git` read-only, built-in artifact, cache and checkout actions never follow a symlink out of the workspace, image references are validated, service-container options that grant host access (`--privileged`, host namespaces, host mounts) are refused, and the CLI warns when a secret lands in a Docker action's arguments. Since v1.1.0, the job's `container:` honours `options`, `volumes` and `ports` under the same checks, `--isolate-workspace` gives each parallel job its own copy of the working copy, `actions/checkout` with a `path:` checks out a `ref:` your local repository has, and steps get `RUNNER_ARCH`. Since v1.2.0, the CLI applies job-level `concurrency:` groups within a run (one at a time; `--concurrency github` also cancels as GitHub does), fetches an `actions/checkout` ref the local repository lacks with the opt-in `--fetch-refs` (into the `path:` copy only) and honours `fetch-depth` there, and pulls private job and service images with `--registry-login` (a temporary login removed right after the pull). Since v1.3.0, a committed `secureci.yml` (or a `secureci` key in package.json) holds repository defaults and profiles: `secureci run --profile dev` (or `SECURECI_PROFILE`) swaps a private self-hosted `runs-on`, job container image or service image for reachable ones and sets per-profile env, vars and settings, without editing the workflow; a repository's config can't set keys that weaken the sandbox (`container-runtime`, the `*-file` keys, `allow-network: true`). - `secureci validate --contract ` checks workflows against a pipeline contract: required and forbidden actions, their order, minimum versions, SHA pinning and allowed owners. Output can be text, JSON or SARIF. The contract can live in another repository (`--contract owner/repo/path@ref`, since v0.4.0); the enforced commit is recorded in the report, and moving refs warn. Since v1.2.0, contract checks also decide `if:` conditions on `github.ref` where the triggers pin it (e.g. `push.branches: [main]`, or tags only). - `secureci validate` also flags template injection (untrusted `${{ }}` input in `run:` scripts or `actions/github-script`), missing or excessive `GITHUB_TOKEN` permissions, `pull_request_target` / `workflow_run` jobs that check out and run untrusted code, and actions with known security advisories from the GitHub Advisory Database (since v0.6.0). Since v0.7.0, a dangerous-trigger finding says whether `actions/checkout`'s safe `pull_request_target` default (or the `allow-unsafe-pr-checkout` opt-out) applies, and a `# secureci-allow dangerous-trigger: ` comment on the checkout step makes it a warning. A contract can make permissions a policy, forbid triggers and set the advisory severity that fails. `secureci pin` rewrites action tags to commit SHAs in place, keeping the tag as a comment for Dependabot and Renovate. `secureci update owner/repo@` (since v1.4.0) moves an action to that version in every workflow that uses it, re-pinned to its commit SHA (`# ` kept as the comment), and refreshes `secureci.lock`; without a tag it takes the latest release, and `--all` updates every action. - `secureci inventory` writes `secureci.lock` (each action tag's commit SHA); `secureci inventory --check` fails CI when a tag moves, the pattern behind the 2025 tj-actions/changed-files compromise. SecureCI works with GitHub's workflow lockfiles (actions.lock, generally available since October 2026 on GitHub.com and GitHub Enterprise Cloud): when a repository's only lockfile is actions.lock, `secureci inventory --check` verifies against it (since v0.3.0), on a laptop and in pull requests. When a repository has both, `secureci inventory --check` also fails if secureci.lock and actions.lock pin an action at different commits or repositories, offline too (since v1.5.0). secureci.lock covers GitHub Enterprise Server and local `./` actions. Since v0.5.0, the lock also covers transitive dependencies (actions inside the actions you use) and records each repository's GitHub ids, so a deleted-and-re-created repository (repo-jacking) fails the check; a contract can require a lockfile with `lockfile: { required: true }`. Since v1.0.1, `inventory --update-lock ` and `pin --update-lock ` lock what those files use and keep the other workflows' entries (up to v1.0.0 they were dropped). Since v1.1.0, `secureci org scan ` validates and inventories every repository in an organisation (JSON results only), and contract checks decide `if: github.event_name` conditions per trigger: a required action that can never run for the workflow's triggers is an error. - The SecureCI CLI is also a library (since v1.6.0): `import { validate, buildInventory, pinContent, updateContent } from '@secureci/cli'` runs the same validate, inventory, pin and update logic on file contents (a repository-relative path to text map), with no checkout and nothing read from disk. `validate` returns the `secureci validate --format json` report, and `buildInventory`, `lockEntries` and `diffLock` produce and compare `secureci.lock` entries. Resolving tags to commit SHAs, fetching remote actions and looking up advisories go through functions the caller passes in (for example, a client using its own GitHub token); without them, no network calls are made. `@secureci/cli/core` exports the same functions with no Node.js built-ins, for Cloudflare Workers, queue consumers and other edge runtimes; its `AdvisoryChecker` takes `httpGet`, `listTags`, an optional cache (in memory by default, or for example a KV namespace) and a token it never logs. Docs: https://secure-ci.dev/docs#library-use - Agent skill for coding agents (Claude Code, Codex, Cursor and others): https://secure-ci.dev/skill.md has an agent check every GitHub Actions workflow it creates or edits (`secureci validate`, `secureci pin --check`), run workflows locally (`secureci run`, a nektos/act alternative), and set SecureCI up in a repository: `secureci pin`, a committed `secureci.lock`, and the `secure-ci/cli` action with `inventory: check` as a step in an existing job, replacing `actionlint` if present. It also loads for requests that name actionlint, zizmor, poutine, OpenSSF Scorecard, pinact, ratchet or StepSecurity, and offers the SecureCI equivalent. Install with `npx skills add secure-ci/cli --skill secureci`. Source: https://github.com/secure-ci/cli/blob/main/skills/secureci/SKILL.md - The SecureCI GitHub Action is referenced by an exact release tag (for example `secure-ci/cli@v1.6.1`, the latest release; there is no moving major tag). Since v0.8.0, it runs the CLI release matching its tag by default; the `version` input runs another. Its SARIF upload (on by default, via `github/codeql-action/upload-sarif` v4 since v1.0.0) needs `actions: read` and `security-events: write` on the job and code scanning enabled for the repository; otherwise set `upload-sarif: false`. - `secureci init workflow` writes a ready-to-commit PR-checks workflow that passes `secureci validate`. Since v0.10.0, it pins every action to a commit SHA by default (`--no-pin` keeps tags, `--offline` pins only from the action cache), asks for `actions: read` and `security-events: write` for the SARIF upload, and reminds you that code scanning must be enabled (`--no-upload` leaves the upload out). - No agent is installed on CI runners: checks run on a developer's machine and in pull requests, free for public and private repositories. - A read-only SecureCI GitHub App (Metadata and Contents read; it reads only `.github/` workflow files and never clones or stores application code) is in early access: organisations can join at https://secure-ci.dev/#request-access. It is not generally available or installable yet. Today, organisations can also request a GitHub Actions supply-chain assessment, at no cost: they run the open-source CLI over their repositories in their own infrastructure (`secureci org scan `, or the script at https://secure-ci.dev/org-scan.sh) and email only the JSON results to hello@secure-ci.dev (never source code), which are deleted 30 days after the report is delivered. Continuous monitoring and drift alerts are not available yet. The CLI and the report work with GitHub.com and GitHub Enterprise Server. ## Common questions - How do I run GitHub Actions locally? Install the free SecureCI CLI and run `secureci run` (Docker, Podman or containerd); `--dry-run` previews jobs. Guide: https://secure-ci.dev/guides/run-github-actions-locally. It is a nektos/act alternative: https://secure-ci.dev/compare/nektos-act - How do I pin GitHub Actions to commit SHAs? `secureci pin` rewrites tags to SHAs and keeps the tag as a comment for Dependabot and Renovate; `secureci validate` can require pinning: https://secure-ci.dev/docs - How do I update a GitHub Action that is pinned to a commit SHA? `secureci update actions/checkout@v7.0.1` re-pins every use to the new version's commit (since v1.4.0); `secureci update --all` moves every action to its latest release: https://secure-ci.dev/docs#update-pinned-actions-secureci-update - How do I detect a compromised or moved GitHub Action tag (like tj-actions/changed-files)? `secureci inventory --check` fails CI when a locked tag points at different code: https://secure-ci.dev/docs - How do I enforce a golden path / required steps across GitHub Actions workflows? A pipeline contract with `secureci validate --contract`: https://secure-ci.dev/compare/github-native-security - What GitHub Actions security tools exist besides actionlint and zizmor? Comparison: https://secure-ci.dev/compare/actionlint-zizmor - Is there a free StepSecurity alternative for private repositories? Comparison: https://secure-ci.dev/compare/stepsecurity ## Docs - [SecureCI CLI documentation](https://secure-ci.dev/docs): install (npm or standalone binary), running workflows locally, container runtimes, security checks (template injection, token permissions, dangerous triggers, known advisories), pipeline contracts, SARIF output, action inventory and drift, pinning actions to SHAs, use in CI, library use (validate, inventory, pin and update on file contents, in Node.js or Workers via `@secureci/cli/core`), supported workflow features and limitations - [CLI on npm](https://www.npmjs.com/package/@secureci/cli): the `@secureci/cli` package - [CLI source on GitHub](https://github.com/secure-ci/cli): source code, README and full reference (DOCS.md) ## Guides - [How to run GitHub Actions locally](https://secure-ci.dev/guides/run-github-actions-locally): `secureci run` in Docker, Podman or containerd, `--dry-run`, choosing a job, event or matrix, then `secureci validate` and `secureci pin --check` before you push, and the limits of a local run - [How to pin GitHub Actions to a commit SHA](https://secure-ci.dev/guides/pin-github-actions-to-commit-sha): `secureci pin` rewrites tags to SHAs and keeps the tag as a comment, `secureci pin --check` or a contract with `pins.required: true` enforces it in CI, and `secureci.lock` covers what pinning misses (transitive actions, re-created repositories) - [GitHub Actions linter: validate workflows before you push](https://secure-ci.dev/guides/github-actions-linter): lint workflow files with `secureci validate` (syntax, `${{ }}` expressions and `if:` conditions evaluated as GitHub does, template injection, `GITHUB_TOKEN` permissions, dangerous triggers, known advisories), JSON and SARIF output, `secureci init workflow` for pull requests, `--contract` for your own pipeline standard, and how SecureCI compares with actionlint, zizmor and a YAML linter - [GitHub Actions secrets: how they leak and how to check your workflows](https://secure-ci.dev/guides/github-actions-secrets): the five ways secrets leak (fork code under `pull_request_target`/`workflow_run`, template injection, compromised or moved third-party actions, an over-broad `GITHUB_TOKEN`, unmasked derived values), the `secureci validate` check for each, `secureci pin` and `secureci inventory --check`, and `secureci run --secret NAME` / `--secret-file` with masking for local runs - [How to audit GitHub Actions across an organisation](https://secure-ci.dev/guides/audit-github-actions-organisation): why the audit log is not a workflow inventory, `secureci org scan ` with a read-only token (`contents: read`, `metadata: read`) and a sparse clone of `.github/` only, `--repos`, `--include-forks`, `--contract` and GitHub Enterprise Server (`GITHUB_SERVER_URL`), the JSON results (manifest.json, validate.json, inventory/.json, errors.log) with `jq` queries for third-party actions, unpinned references, findings and advisories, and fixing per repository with `secureci pin`, `secureci.lock` and PR checks - [GitHub Actions permissions: least privilege for GITHUB_TOKEN](https://secure-ci.dev/guides/github-actions-permissions): a read-only top-level `permissions:` block, write scopes per job (job-level permissions replace the top-level block), the four `secureci validate` permission findings (SARIF rule `secureci/permissions`), and a contract permissions policy (`required`, `max`) that makes them errors ## Compliance - [Compliance mapping](https://secure-ci.dev/compliance): which controls the SecureCI GitHub Action (Marketplace: SecureCI GHA, https://github.com/marketplace/actions/secureci-gha) supports which controls in PCI DSS v4.0.1 (Requirement 6, notably 6.3.2), DORA (RTS 2024/1774 Art. 16 and 17), NIS2 Art. 21(2)(d)-(e), the UK Software Security Code of Practice, ISO/IEC 27001:2022 Annex A and SOC 2, with the evidence it produces and what it does not cover. SecureCI supports controls; it does not make anyone compliant or certified, and it is not an ASV or penetration testing tool. ## Comparisons - [SecureCI vs nektos/act](https://secure-ci.dev/compare/nektos-act): run GitHub Actions locally, plus pipeline-standard, pinning and drift checks act doesn't have - [SecureCI vs actionlint, zizmor, poutine and OpenSSF Scorecard](https://secure-ci.dev/compare/actionlint-zizmor): enforcing your own pipeline standards and an action lockfile vs generic linters and scanners - [SecureCI vs StepSecurity](https://secure-ci.dev/compare/stepsecurity): stopping risky workflow changes before merge, free for private repositories - [SecureCI vs GitHub native security](https://secure-ci.dev/compare/github-native-security): a golden path (required actions, order, minimum versions) on top of GitHub's allowed-actions policy, workflow lockfiles, Dependabot and CodeQL; for moved tags, `secureci inventory --check` verifies GitHub's actions.lock or secureci.lock and fails the pull request, on GitHub.com and GitHub Enterprise Server ## Product - [SecureCI home](https://secure-ci.dev/): the org-wide platform for GitHub Actions inventory, pipeline standards and drift alerts (in development), a sample assessment report, and the assessment request form - [Privacy notice](https://secure-ci.dev/privacy) - [Terms of use](https://secure-ci.dev/terms) ## Optional - [SecureCI on LinkedIn](https://www.linkedin.com/company/secureci/) - [SecureCI on GitHub](https://github.com/secure-ci) - Contact: hello@secure-ci.dev