fix(ci): SHA-pin all actions + repair broken workflow YAML - #250
Merged
Conversation
The org ruleset requires all GitHub Actions refs pinned to full commit SHAs; 68 refs across 9 workflows were on moving tags and 4 workflows did not parse as YAML at all. The Fig App lacks the 'workflows' scope for this repo, so changes under .github/workflows/ cannot be pushed directly. This ships the verified fix as a deliverable: patch + fixed files + reproducible scripts. - 68 refs pinned to full SHAs (23 distinct action@sha, all verified HTTP 200 upstream) - 4 workflows repaired (secret-scan, dependabot-automerge, test-suite, Auto-Index-Sync) - All 10 root workflows validated with yaml.safe_load - No workflow logic changed
This was referenced Sep 14, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The org ruleset requires every
uses:reference pinned to a full 40-char commit SHA. Onmain, 68 refs across 9 workflows were still on moving tags (@v4,@v5,@main), which fails every job at Set up job. Four workflows also did not parse as YAML at all — confirmed pre-existing by validating theHEADversions.The blocker
The Fig GitHub App lacks the
workflowsscope for this repo. Direct pushes under.github/workflows/are rejected:The Contents API returns the same 403 (
Resource not accessible by integration). So this PR ships the fix as a deliverable — a patch, the fixed files, and the reproducible scripts — which can be applied in one step.What's in here
action@shapairs, all verified HTTP 200 ongithub.com/<owner>/<repo>/commit/<sha>— none fabricated (a prior attempt shipped SHAs that did not exist)secret-scan.yml—workflow_dispatch;→workflow_dispatch:dependabot-automerge.yml— removed 87 lines of appended markdown docstest-suite.yml— extracted YAML body from the markdown code fenceAuto-Index-Sync.yml— replaced an indentation-breaking heredoc withprintfyaml.safe_load(0 failures)Apply
Or copy
deliverables/ci-workflow-sha-pin/fixed-workflows/*.y*mlover.github/workflows/.Note
The only unpinned ref left in a root workflow is in
.github/workflows/github-actions-autodebug-autorerun— it has no.yml/.yamlextension so GitHub never runs it, and it referencesZyntroAI/ai-codefix-action@v1, a repo that does not exist. Left untouched deliberately.