{"id":50216294,"url":"https://github.com/rogerchappel/actionpin","last_synced_at":"2026-05-26T09:04:28.674Z","repository":{"id":358973914,"uuid":"1235353338","full_name":"rogerchappel/actionpin","owner":"rogerchappel","description":"Local-first GitHub Actions workflow risk checker.","archived":false,"fork":false,"pushed_at":"2026-05-19T20:33:40.000Z","size":51,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T23:59:00.466Z","etag":null,"topics":["ci","github-actions","security","supply-chain","typescript","workflow-scanner"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogerchappel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-11T08:40:57.000Z","updated_at":"2026-05-19T20:34:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogerchappel/actionpin","commit_stats":null,"previous_names":["rogerchappel/actionpin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rogerchappel/actionpin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Factionpin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Factionpin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Factionpin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Factionpin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerchappel","download_url":"https://codeload.github.com/rogerchappel/actionpin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Factionpin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33512343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","github-actions","security","supply-chain","typescript","workflow-scanner"],"created_at":"2026-05-26T09:04:12.161Z","updated_at":"2026-05-26T09:04:28.665Z","avatar_url":"https://github.com/rogerchappel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActionPin 📌\n\nActionPin is a tiny local-first GitHub Actions workflow checker. It looks for the stuff that quietly turns CI into supply-chain confetti: unpinned actions, broad token permissions, secret-looking literals, risky `pull_request_target`, and shell steps that fetch the internet straight into `bash`.\n\nIt is boring on purpose: deterministic, offline, no telemetry, no GitHub API required.\n\n## Install\n\n```bash\nnpm install\nnpm run build\nnode dist/src/cli.js rules\n```\n\nWhen published, the CLI is exposed as `actionpin`.\n\n## Quick start\n\n```bash\nactionpin scan .github/workflows --out actionpin-report.md\nactionpin scan fixtures/bad-workflows --format json --fail-on medium\nactionpin rules\n```\n\nFor local development in this repo:\n\n```bash\nnpm run build\nnode dist/src/cli.js scan fixtures/bad-workflows --format json --fail-on high\n```\n\n## Rules\n\n- `actions.unpinned` — third-party `uses:` references must be pinned to a full 40-character commit SHA.\n- `permissions.missing` — top-level `permissions:` should be explicit.\n- `permissions.broad` — `write-all`, `read-all`, and broad top-level write permissions are risky.\n- `secrets.plaintext` — secret-looking literal values should not live in workflow YAML.\n- `events.pull_request_target` — privileged PR workflows need careful review.\n- `shell.curl-bash` — piping remote content into `bash`/`sh` is flagged.\n- `shell.insecure-flags` — patterns like `set +e`, `curl -k`, and `wget --no-check-certificate` are flagged.\n\n## Configuration\n\nCreate `actionpin.config.json` or pass `--config`:\n\n```json\n{\n  \"failOn\": \"medium\",\n  \"format\": \"markdown\",\n  \"ignoreRules\": [\"events.pull_request_target\"]\n}\n```\n\nInline allow comments are supported for narrow exceptions:\n\n```yaml\n# actionpin allow: actions.unpinned\n- uses: actions/labeler@v5\n```\n\nUse them sparingly and leave a human-readable comment nearby.\n\n## Safety model\n\nActionPin only reads workflow paths you ask it to scan, refuses paths outside the repo root, writes only when `--out` is provided, and never performs network calls while scanning. Reports include stable file/line/snippet evidence and remediation text.\n\n## CI usage\n\n```yaml\n- run: npm ci\n- run: npm run build\n- run: node dist/src/cli.js scan .github/workflows --fail-on high\n```\n\nUse Markdown output for PR artifacts and JSON output for bots or release evidence.\n\n## Limitations\n\nActionPin is not a full YAML interpreter or shell static analyzer. It intentionally catches common, review-worthy patterns without trying to prove a workflow is safe. It does not resolve action metadata, verify SHAs, or inspect remote repositories.\n\n## Development\n\n```bash\nnpm test\nnpm run check\nnpm run build\nnpm run smoke\nbash scripts/validate.sh\n```\n\nSee `docs/PRD.md` and `docs/TASKS.md` for the MVP contract.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Factionpin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerchappel%2Factionpin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Factionpin/lists"}