Skip to content

fix(ci): SHA-pin all actions + repair broken workflow YAML - #250

Merged
fig-ai-agent[bot] merged 1 commit into
mainfrom
fix/sha-pin-and-yaml-repair
Sep 13, 2026
Merged

fix(ci): SHA-pin all actions + repair broken workflow YAML#250
fig-ai-agent[bot] merged 1 commit into
mainfrom
fix/sha-pin-and-yaml-repair

Conversation

@fig-ai-agent

@fig-ai-agent fig-ai-agent Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Why

The org ruleset requires every uses: reference pinned to a full 40-char commit SHA. On main, 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 the HEAD versions.

The blocker

The Fig GitHub App lacks the workflows scope for this repo. Direct pushes under .github/workflows/ are rejected:

! [remote rejected] ... (refusing to allow a GitHub App to create or update workflow
  `.github/workflows/Auto-Index-Sync.yml` without `workflows` permission)

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

  • 68 refs pinned across 9 workflows to full SHAs, resolved from upstream tags via the GitHub API
  • 23 distinct action@sha pairs, all verified HTTP 200 on github.com/<owner>/<repo>/commit/<sha> — none fabricated (a prior attempt shipped SHAs that did not exist)
  • 4 workflows repaired:
    • secret-scan.ymlworkflow_dispatch;workflow_dispatch:
    • dependabot-automerge.yml — removed 87 lines of appended markdown docs
    • test-suite.yml — extracted YAML body from the markdown code fence
    • Auto-Index-Sync.yml — replaced an indentation-breaking heredoc with printf
  • All 10 root workflows parse with yaml.safe_load (0 failures)
  • No workflow logic changed

Apply

git checkout main && git pull
git checkout -b fix/sha-pin-and-yaml-repair
git apply deliverables/ci-workflow-sha-pin/sha-pin-and-yaml-repair.patch
git add .github/workflows && git commit -m "fix(ci): pin all actions to full SHAs and repair broken workflow YAML"
git push -u origin fix/sha-pin-and-yaml-repair

Or copy deliverables/ci-workflow-sha-pin/fixed-workflows/*.y*ml over .github/workflows/.

Note

The only unpinned ref left in a root workflow is in .github/workflows/github-actions-autodebug-autorerun — it has no .yml/.yaml extension so GitHub never runs it, and it references ZyntroAI/ai-codefix-action@v1, a repo that does not exist. Left untouched deliberately.

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
@fig-ai-agent
fig-ai-agent Bot merged commit 2c56e08 into main Sep 13, 2026
5 of 9 checks passed
@fig-ai-agent
fig-ai-agent Bot deleted the fix/sha-pin-and-yaml-repair branch September 13, 2026 21:51
This was referenced Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants