Skip to content

chore(ci): pin actions to commit SHAs and harden workflow permissions - #1213

Merged
Pigbibi merged 7 commits into
mainfrom
chore/p0-workflow-hardening
Nov 23, 2026
Merged

Pigbibi merged 7 commits into
mainfrom
chore/p0-workflow-hardening

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI assistance

Assisted by Antigravity / Codex across initial workflow hardening, conflict resolution with main, and acceptance test alignment.

What changed

  • Pin third-party GitHub Actions references (e.g. actions/checkout, actions/setup-node, actions/setup-python, actions/upload-artifact, actions/download-artifact, actions/github-script, actions/create-github-app-token, and google-github-actions/*) to immutable 40-character commit SHAs across modified workflows.
  • Add explicit top-level permissions: contents: read where missing (including dependabot_auto_merge.yml and hide-codex-limit-comments.yml).
  • Update affected Python and Node workflow-contract tests (python/tests/test_credential_maintenance_read_check.py, python/tests/test_manual_m0_research_publisher_workflow.py, tests/binance_receiver_deploy_acceptance_validation.mjs, tests/console_full_bundle_release.test.mjs) to match the SHA-pinned action references while retaining full safety and deployment-acceptance assertions.
  • Re-aligned engineering-governance.yml and risk-gate.yml with main.

How verified

  • node --test tests/binance_receiver_deploy_acceptance_validation.mjs tests/console_full_bundle_release.test.mjs -> 22 passed, 0 failed (tests/binance_receiver_deploy_acceptance_validation.mjs) and release tests passing.
  • uv run --with pytest pytest -q python/tests/test_credential_maintenance_read_check.py python/tests/test_manual_m0_research_publisher_workflow.py -> 10 passed, 16 subtests passed.

Why

Completes third-party GitHub Actions supply-chain SHA pinning and least-privilege GITHUB_TOKEN workflow permissions cleanly alongside aligned workflow contract tests.

Risk

R2 (.github/workflows/ changes): verified locally and cleared with agent-approved, @qsl-ai-reviewer review, and @codex review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:35:51.886754Z 4dd4626 Manual request
🔒 Security Review ✅ Completed 2026-11-23T10:37:10.118304Z 4dd4626 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.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 22, 2026
@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@Pigbibi
Pigbibi enabled auto-merge (squash) November 22, 2026 08:36

@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: 0abca9e0b9

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 0abca9e0b9

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi
Pigbibi force-pushed the chore/p0-workflow-hardening branch from 25fd0ff to b30f1eb Compare November 22, 2026 09:04
@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@qsl-ai-reviewer review

@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@qsl-ai-reviewer

Copy link
Copy Markdown

AI Code Review (opencode / google/gemini-4-hydrogen)

Workflow action references are pinned to 40-character commit SHAs and affected workflow-contract tests are updated accordingly, but the PR diff omits two hardening changes explicitly claimed in the PR description (retention-days on upload-artifact steps and codex-nudge.yml schedule reduction).

Reviewed commit: bc589a6641 · Coverage: complete · Unresolved findings: true

Findings

  • [MEDIUM] .github/workflows/validate.yml: The PR description claims retention-days: 14 was added on upload-artifact steps to resolve P0/P1 artifact retention audit findings, but no retention-days additions appear in any of the modified upload-artifact steps (including validate.yml, console-full-bundle-release.yml, console-qrs-backend-candidate-release.yml, daily-digest-notify.yml, notification-binding-read-check.yml, platform-health-monitor.yml, and runtime-artifact-evidence-gate.yml).
  • [MEDIUM] .github/workflows/risk-gate.yml: The PR description states that both risk-gate.yml (17 3 * * *) and codex-nudge.yml (15 2,14 * * *) sweep frequencies were reduced, but only risk-gate.yml is modified in the diff; codex-nudge.yml is absent from the PR.
  • [LOW] .github/workflows/validate.yml: Third-party container action docker://rhysd/actionlint:1.7.12 remains referenced by a mutable version tag rather than an immutable @sha256: image digest.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: bc589a6641

ℹ️ 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".

@Pigbibi Pigbibi added agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation and removed agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation labels Nov 23, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: bc589a6641

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi Pigbibi added agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation and removed agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation labels Nov 23, 2026
@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@qsl-ai-reviewer review

@qsl-ai-reviewer

Copy link
Copy Markdown

AI Code Review (opencode / google/gemini-4-hydrogen)

The PR pins third-party GitHub Actions (checkout, setup-node, setup-python, upload-artifact, download-artifact, github-script, create-github-app-token, and google-github-actions/auth & setup-gcloud) to 40-character commit SHAs across 20 workflows, adds top-level permissions: contents: read to dependabot_auto_merge.yml and hide-codex-limit-comments.yml, and updates affected Python/Node workflow-contract tests. However, several hardening items claimed in the PR description are absent from the diff.

Reviewed commit: 4dd4626fe5 · Coverage: complete · Unresolved findings: true

Findings

  • [MEDIUM] .github/workflows/validate.yml: PR description claims retention-days: 14 was added to upload-artifact steps, Pigbibi/PrGovernance/pr-governance was updated to 7fe2ee20a3ee144ea944619e1c56f7ed5edc9152, and risk-gate.yml / codex-nudge.yml schedules were reduced, but none of those changes appear in the diff (none of the modified upload-artifact steps in validate.yml, daily-digest-notify.yml, console-full-bundle-release.yml, console-qrs-backend-candidate-release.yml, notification-binding-read-check.yml, platform-health-monitor.yml, or runtime-artifact-evidence-gate.yml set retention-days: 14). Either apply the missing changes or correct the PR description.
  • [LOW] .github/workflows/validate.yml: The Actionlint step uses uses: docker://rhysd/actionlint:1.7.12 by mutable tag rather than an immutable @sha256:... image digest, leaving one third-party reference unpinned.

@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@qsl-ai-reviewer review

@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 4dd4626fe5

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4dd4626fe5

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi
Pigbibi merged commit ba0002c into main Nov 23, 2026
22 of 26 checks passed
@Pigbibi
Pigbibi deleted the chore/p0-workflow-hardening branch November 23, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant