Skip to content

Narrow public Pages deployment permissions#134

Merged
simongonzalezdc merged 1 commit into
mainfrom
security-public-hardening-20260514
May 14, 2026
Merged

Narrow public Pages deployment permissions#134
simongonzalezdc merged 1 commit into
mainfrom
security-public-hardening-20260514

Conversation

@simongonzalezdc
Copy link
Copy Markdown
Member

@simongonzalezdc simongonzalezdc commented May 14, 2026

Summary

  • move Pages and OIDC write permissions from workflow scope to the deploy job
  • pin Pages deployment actions to immutable commits

Validation

  • git diff --check
  • Ruby YAML parse for changed workflow
  • repo pre-commit hook reported Node docs valid

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Move Pages and OIDC write grants from workflow scope to the deploy job and pin Pages deployment actions to immutable commits.

Constraint: public Pages deployment needs OIDC only for the deploy job.

Rejected: removing id-token entirely | actions/deploy-pages requires OIDC for Pages deployment.

Confidence: high

Scope-risk: narrow

Directive: Keep OIDC scoped to the exact deployment job that consumes it.

Tested: git diff --check; YAML parsed with Ruby.

Not-tested: live GitHub Pages deployment was not run locally.
@simongonzalezdc simongonzalezdc merged commit ecaf54f into main May 14, 2026
5 checks passed
@simongonzalezdc simongonzalezdc deleted the security-public-hardening-20260514 branch May 14, 2026 04:13
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.

1 participant