Skip to content

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

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

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

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

AI assistance

Antigravity (Gemini)

What changed

  • Pin third-party GitHub Actions references to immutable 40-character commit SHAs.
  • Update Pigbibi/PrGovernance/pr-governance to 7fe2ee20a3ee144ea944619e1c56f7ed5edc9152.
  • Add explicit top-level permissions: contents: read where missing and retention-days: 14 on upload-artifact steps.
  • Reduce scheduled risk-gate.yml / codex-nudge.yml sweep frequency (17 3 * * * / 15 2,14 * * *) and align affected workflow-contract tests.

How verified

  • Validated all modified workflow YAML files with yaml.safe_load.
  • Verified repository CI checks (test, Documentation check, Gitleaks, Commit message convention) on this PR.

Why

Resolves P0/P1 supply-chain pinning, least-privilege GITHUB_TOKEN, artifact retention, and redundant governance cron runs identified in the cross-org audit.

Risk

R2 (.github/workflows/ changes): cleared with agent-approved label 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:29:11.135059Z abac3eb Manual request
🔒 Security Review ✅ Completed 2026-11-23T10:32:30.140837Z abac3eb 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.

@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: 8bfa6f0494

ℹ️ 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 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
Collaborator Author

@codex review

@Pigbibi
Pigbibi enabled auto-merge (squash) November 22, 2026 09:22
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 3bc7db4d6f

ℹ️ 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: 3bc7db4d6f

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
Collaborator Author

@qsl-ai-reviewer review

@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@qsl-ai-reviewer

Copy link
Copy Markdown

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

The PR pins third-party GitHub Actions to 40-character commit SHAs, adds top-level read-only permissions across several workflows, and updates matching workflow-contract tests. No high or medium severity bugs or security issues were found, though there is an undocumented concurrency behavior change in runtime-guard.yml and several items claimed in the PR description are absent from the diff.

Reviewed commit: abac3ebc14 · Coverage: complete · Unresolved findings: false

Findings

  • [LOW] .github/workflows/runtime-guard.yml: Changed concurrency.cancel-in-progress from false to true without mentioning it in the PR description; cancelling an in-flight runtime-guard run mid-execution can interrupt alerting or dedupe state persistence.
  • [LOW] .github/workflows/build-hk-low-vol-snapshot-artifacts.yml: The PR description claims retention-days: 14 was added to upload-artifact steps (along with updates to Pigbibi/PrGovernance/pr-governance, risk-gate.yml, and codex-nudge.yml), but none of those changes appear in the PR diff.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: abac3ebc14

ℹ️ 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 merged commit 856f344 into main Nov 23, 2026
14 of 17 checks passed
@Pigbibi
Pigbibi deleted the chore/p0-workflow-hardening branch November 23, 2026 10:29
@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: abac3ebc14

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.

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