Skip to content

ci: pin third-party actions to commit SHAs and least-privilege permissions#28

Merged
OgeonX-Ai merged 1 commit into
masterfrom
ci/sha-pin-and-least-privilege
Jul 8, 2026
Merged

ci: pin third-party actions to commit SHAs and least-privilege permissions#28
OgeonX-Ai merged 1 commit into
masterfrom
ci/sha-pin-and-least-privilege

Conversation

@OgeonX-Ai

Copy link
Copy Markdown
Contributor

Summary

  • Pins every third-party GitHub Actions uses: reference (checkout, setup-node, setup-python, codeql-action init/autobuild/analyze, upload-pages-artifact, deploy-pages, amannn/action-semantic-pull-request, actions/stale) to an immutable commit SHA across ci.yml, codeql.yml, pages.yml, pr-lint.yml, stale.yml.
  • SHAs resolved live via gh api repos/<owner>/<action>/commits/<tag> on 2026-07-07 (repo had already drifted past the phase-31-01 baseline tags to checkout v7, setup-node v6, setup-python v6, codeql-action v4, upload-pages-artifact v5, deploy-pages v5, action-semantic-pull-request v6, stale v10 — resolved fresh rather than reusing stale SHAs).
  • permissions: and timeout-minutes: were already present on every job (confirmed by 31-01 audit); not modified in this PR.
  • Part of REQ-1.4.10 (org-wide CI supply-chain hardening, phase 31).

Test plan

  • pwsh scripts/workflow-lint.ps1 -Path portfolio/Promptimprover -Json reports zero findings on this branch.
  • git diff --stat confirms only uses: lines changed.

…rmissions (REQ-1.4.10)

- Pin actions/checkout, setup-node, setup-python, codeql-action, upload-pages-artifact,
  deploy-pages, amannn/action-semantic-pull-request, and actions/stale to immutable commit
  SHAs across ci.yml, codeql.yml, pages.yml, pr-lint.yml, stale.yml
- Tags resolved live via gh api (2026-07-07) since files were already bumped past the
  phase-31-01 baseline (checkout v7, setup-node v6, setup-python v6, codeql-action v4,
  upload-pages-artifact v5, deploy-pages v5, action-semantic-pull-request v6, stale v10)
- permissions: and timeout-minutes: were already present on every job; not modified
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@OgeonX-Ai OgeonX-Ai merged commit 091e1f6 into master Jul 8, 2026
11 checks passed
@OgeonX-Ai OgeonX-Ai deleted the ci/sha-pin-and-least-privilege branch July 8, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants