Skip to content

ci: add actionlint - #63

Merged
imran-siddique merged 1 commit into
mainfrom
ci/actionlint
Sep 7, 2026
Merged

ci: add actionlint#63
imran-siddique merged 1 commit into
mainfrom
ci/actionlint

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

A duplicate env: key in a sibling repo's release.yml made GitHub Actions refuse to load the workflow. It surfaced as a "workflow file issue" on unrelated pushes, the release event ran nothing, and a version sat unpublished for hours.

It got through because yaml.safe_load keeps the last value for a duplicate key without complaining. actionlint says it plainly:

key "env" is duplicated in element of "steps" section. previously defined at line:13,col:9 [syntax-check]

Verified against a reproduction of the exact broken file before adding it.

On how it's installed: fetched by pinned version with a checksum verification, not run as a third-party action. actionlint publishes no official action, and a check whose purpose is guarding the workflow supply chain should not add a new dependency to it.

Triggered only on changes under .github/workflows, so it costs nothing on ordinary PRs. This repo is clean against it today, so it adds no backlog.

The sibling PRs also carry a pytest guard against a suite silently grading an installed wheel instead of the tree. This repo tests against third-party distributions on purpose and has no package of its own to shadow, so it gets actionlint only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t

A duplicate env: key in a sibling repo's release.yml made GitHub refuse
to load the workflow. It surfaced as a "workflow file issue" on unrelated
pushes, the release event ran nothing, and a version sat unpublished for
hours. yaml.safe_load keeps the last value for a duplicate key without
complaining, so local validation passed. actionlint reports it directly.

Fetched by pinned version and checksum-verified rather than run as a
third-party action, so a check that exists to guard the workflow supply
chain does not add to it. Runs only when .github/workflows changes, and
this repo is clean against it today.

No test-environment guard here: this repo tests against third-party
distributions on purpose, so there is no package of its own to shadow.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t
@imran-siddique
imran-siddique requested a review from a team as a code owner September 6, 2026 22:59
@imran-siddique
imran-siddique merged commit 0e20e76 into main Sep 7, 2026
5 checks passed
@imran-siddique
imran-siddique deleted the ci/actionlint branch September 7, 2026 00:33
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.

1 participant