Skip to content

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

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

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

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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:53.540186Z f252e29 Manual request
🔒 Security Review ✅ Completed 2026-11-23T10:31:42.861454Z f252e29 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:21

@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: 00ac707af3

ℹ️ 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 tests/test_runtime_monitor_workflows.py Resolved
@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: 00ac707af3

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

@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)

The PR pins third-party GitHub Actions to 40-character commit SHAs across 20 workflow files, adds top-level read-only permissions to 5 workflows, and updates two workflow-contract tests to match the pinned auth SHA. No high- or medium-severity bugs or security issues were found in the diff, though the PR description lists several changes (upload-artifact retention-days, pr-governance bump, and risk-gate/codex-nudge cron changes) that are not present in this PR's diff.

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

Findings

  • [LOW] .github/workflows/ft-afs-align-broker-account.yml: The PR description states that retention-days: 14 was added to upload-artifact steps, but the actions/upload-artifact step here was only SHA-pinned without setting retention-days: 14.
  • [LOW] .github/workflows/ci.yml: The PR description mentions updating Pigbibi/PrGovernance/pr-governance and reducing scheduled frequencies in risk-gate.yml / codex-nudge.yml, none of which appear in the diff.

@Pigbibi
Pigbibi merged commit 5f4c938 into main Nov 23, 2026
13 of 16 checks passed
@Pigbibi
Pigbibi deleted the chore/p0-workflow-hardening branch November 23, 2026 10:29
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: f252e29373

ℹ️ 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: f252e29373

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