Skip to content

🔒 security(ci): add concurrency and drop persisted checkout credentials - #248

Merged
SamErde merged 2 commits into
mainfrom
ci-concurrency-credentials-246
Oct 1, 2026
Merged

SamErde merged 2 commits into
mainfrom
ci-concurrency-credentials-246

Conversation

@SamErde

@SamErde SamErde commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Pull Request

Type of Change

  • 📖 Documentation
  • 🪲 Fix
  • 🩹 Patch
  • ⚠️ Security Fix
  • 🚀 Feature
  • 💥 Breaking Change

Issue

Closes #246

Description

Adds concurrency controls and stops persisting checkout credentials in read-only workflows.

  • Build Module: the job-level group is replaced by a workflow-level group keyed on the PR number or ref (cancel-in-progress). The compatibility matrix legs no longer share a job-level group that would make them cancel each other.
  • New concurrency groups:
    • Build External Help: keyed on workflow_run.head_branch, because github.ref is always the default branch for workflow_run.
    • codacy: cancels only pull_request runs, so main pushes and scheduled scans still upload SARIF.
    • dependency-review and Validate Zensical.
  • Format Markdown (pushes commits): fixed group, cancel-in-progress: false. Checkout credentials stay persisted because the formatter pushes with them.
  • persist-credentials: false on checkouts that never push: Build Module (both jobs), Build External Help, codacy, dependency-review, Validate Zensical, and the Deploy Zensical build job. A repo-wide search found git pushes only in Format Markdown, Update MkDocs Navigation and Validate Module Manifest. Those writers are intentionally unchanged.
  • Not touched: release/publish workflows (🔒 security(ci): harden Publish Release credentials and concurrency #247) and the Deploy Zensical github-pages deploy group.

Validation

Command Result
actionlint -ignore 'unexpected key "queue" for "concurrency" section' (v1.7.12) ✅ exit 0. The ignore covers only the queue key used in #247, a known actionlint false positive (rhysd/actionlint#654).
zizmor --persona auditor --offline .github/workflows (1.30.1) ✅ artipacked cleared for the 7 checkouts changed here. The remaining artipacked findings are the writer workflows (intentional), Publish Release (#247) and summary.yml (#244).
PR checks on this head See checks below

Checklist

  • 🕵️ I have reviewed my code for errors and tested it.
  • 🚩 My pull request does not contain multiple types of changes.
  • 📄 By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.

- Build Module: workflow-level PR/ref concurrency group replaces the job-level
  group so compatibility matrix legs no longer cancel each other.
- Add PR/ref-keyed concurrency to Build External Help (workflow_run head
  branch aware), codacy (cancel only PR runs), dependency-review and
  Validate Zensical.
- Format Markdown: fixed group, never cancelled, credentials kept for push.
- persist-credentials: false on read-only checkouts (Build Module x2, Build
  External Help, codacy, dependency-review, Validate Zensical, Deploy
  Zensical build).

Closes #246

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SamErde SamErde added the github_actions Pull requests that update GitHub Actions code label Oct 1, 2026
@SamErde

SamErde commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T17:53:01.941098Z c9b61d3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: a70ca5ab-a6c6-4e28-a78c-b8c9eb7be64f

📥 Commits

Reviewing files that changed from the base of the PR and between 615893c and c9b61d3.

📒 Files selected for processing (7)
  • .github/workflows/Build External Help.yml
  • .github/workflows/Build Module.yml
  • .github/workflows/Deploy Zensical.yml
  • .github/workflows/Format Markdown.yml
  • .github/workflows/Validate Zensical.yml
  • .github/workflows/codacy.yml
  • .github/workflows/dependency-review.yml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0675b337d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/codacy.yml Resolved
…help

Key non-PR Codacy runs by commit so pending scans are not replaced, and include the
workflow_run head repository in the External Help group so forks do not collide.

Refs #246

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SamErde

SamErde commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: c9b61d3f81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamErde
SamErde merged commit 645b9d7 into main Oct 1, 2026
16 checks passed
@SamErde
SamErde deleted the ci-concurrency-credentials-246 branch October 1, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🔒 Add CI concurrency and stop persisting checkout credentials in read-only workflows

1 participant