Skip to content

feat: support concurrency queue and job.workflow_* contexts - #661

Closed
wyf027 wants to merge 1 commit into
rhysd:mainfrom
wyf027:feat/concurrency-queue-job-workflow-context
Closed

wyf027 wants to merge 1 commit into
rhysd:mainfrom
wyf027:feat/concurrency-queue-job-workflow-context

Conversation

@wyf027

@wyf027 wyf027 commented May 17, 2026 •

Copy link
Copy Markdown

Summary

Fixes #657 and #647.

  • Parse queue in workflow and job concurrency sections
  • Validate job.workflow_ref, job.workflow_sha, job.workflow_repository, and job.workflow_file_path in expressions

Test plan

  • go test ./...

Fixes #657 and #647.

- Allow `queue` in workflow/job concurrency sections
- Add job.workflow_ref, job.workflow_sha, job.workflow_repository,
  and job.workflow_file_path expression context properties

Co-authored-by: Cursor <[email protected]>
@muzimuzhi

Copy link
Copy Markdown
Contributor
  • Parse queue in workflow and job concurrency sections

PR #654 also addresses this part.

@wyf027 wyf027 closed this by deleting the head repository Jun 23, 2026
telafifi added a commit to EmergentMatter/actions that referenced this pull request Aug 19, 2026
Correcting my own error. The property that gives a reusable workflow its own
commit is job.workflow_sha, under the job context -- not
github.job_workflow_sha, which does not exist. GitHub's contexts reference
documents job.workflow_ref/_sha/_repository/_file_path and states that for a
job defined in a reusable workflow they refer to the reusable workflow file;
actions/runner#4335 shipped them.

The assertion added earlier is what made this knowable: it failed loudly with
'empty' for the github.* form instead of silently checking out the default
branch, which is what both earlier derivations did while appearing to work.

So: use job.workflow_sha when it resolves to a 40-char SHA, since it cannot
drift from the pinned @ref -- it IS that commit. Fall back to the explicit
actions-ref input otherwise, and say so with ::notice so the log records which
path was taken. Fail only when neither is available.

actionlint rejects job.workflow_sha too; its context schema predates the
property (rhysd/actionlint#661, #696, #707 all still open). That is a stale
linter, not a signal to revert.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
seankoji added a commit to seankoji-com/opencode-localise-timestamps that referenced this pull request Sep 11, 2026
…es (#13)

* fix(ci): use the maintained actionlint fork so concurrency.queue parses

rhysd/actionlint is inactive (last release v1.7.12, 2026-03-30) and its concurrency parser rejects the queue key that the synced call-reusable-pr-gatekeeper.yml uses (rhysd/actionlint#661 closed unmerged). Point the download at kjanat/actionlint v1.16.1, which implements it and keeps the same CLI. See seankoji-com/.github#200.

* fix(ci): bump node20 action runtimes surfaced by the actionlint fork

The maintained fork is stricter than rhysd/actionlint v1.7.12 and flags node20 runtimes whose removal is scheduled for 2026-09-23: actions/checkout@v4 -> v7, actions/create-github-app-token@v2 -> v3 (with app-id -> client-id, same vars.SEANKOJI_CI_APP_ID value already passed as client-id elsewhere), actions/setup-node@v4 -> v7. Verified: kjanat/actionlint 1.16.1 over .github/workflows/*.yml exits 0.
seankoji added a commit to seankoji-com/frugalbar that referenced this pull request Sep 11, 2026
…es (#64)

* fix(ci): use the maintained actionlint fork so concurrency.queue parses

rhysd/actionlint is inactive (last release v1.7.12, 2026-03-30) and its concurrency parser rejects the queue key that the synced call-reusable-pr-gatekeeper.yml uses (rhysd/actionlint#661 closed unmerged). Switch the docker:// action to kjanat/actionlint:1.16.1, which implements it and keeps the same CLI. See seankoji-com/.github#200.

* fix(ci): emit an empty Swift SARIF on the CodeQL skip path

The 'CodeQL on public repos' ruleset's code-scanning rule requires a CodeQL result for the head SHA. When analyze-swift skips its analysis steps (no Swift changes), no SARIF is uploaded, so the rule blocks with 'Code scanning is still expecting 1 result from CodeQL' even though the job runs green. Upload an empty SARIF for the /language:swift category on the skip path so CodeQL records a 0-alert result for the SHA and the rule is satisfied, without paying the ~17-minute traced build.
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.

Actionlint does not know about queue: key for concurrency

2 participants