Skip to content

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

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

Pigbibi merged 2 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:27:32.792993Z 3863989 Manual request
🔒 Security Review ✅ Completed 2026-11-23T10:28:37.549031Z 3863989 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:14
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 7c1f2b09f2

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

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)

Workflow actions were pinned to 40-character commit SHAs and top-level read permissions were added in two workflows, but the PR omits the stated upload-artifact retention limits and lists several unincluded workflow/test changes in its description.

Reviewed commit: 38639890a4 · Coverage: complete · Unresolved findings: true

Findings

  • [MEDIUM] .github/workflows/rss_source_pipeline.yml: The PR description states that retention-days: 14 was added to upload-artifact steps to resolve the artifact retention audit item, but actions/upload-artifact in rss_source_pipeline.yml does not specify retention-days.
  • [MEDIUM] .github/workflows/source_event_pipeline.yml: The PR description states that retention-days: 14 was added to upload-artifact steps, but actions/upload-artifact in source_event_pipeline.yml does not specify retention-days.
  • [LOW] .github/workflows/ci.yml: PR description claims updates to Pigbibi/PrGovernance/pr-governance, risk-gate.yml, codex-nudge.yml, and workflow-contract tests, none of which appear in the diff (and the Risk section prematurely claims @codex review / agent-approved clearance).

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 38639890a4

ℹ️ 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 f863363 into main Nov 23, 2026
14 of 17 checks passed
@Pigbibi
Pigbibi deleted the chore/p0-workflow-hardening branch November 23, 2026 10:27
@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: 38639890a4

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