Skip to content

[CI] Limit Pages write permissions to deploy job#839

Open
aobolensk wants to merge 1 commit into
learning-process:masterfrom
aobolensk:write-perm-limit
Open

[CI] Limit Pages write permissions to deploy job#839
aobolensk wants to merge 1 commit into
learning-process:masterfrom
aobolensk:write-perm-limit

Conversation

@aobolensk

Copy link
Copy Markdown
Member

No description provided.

@aobolensk aobolensk requested a review from allnes as a code owner June 26, 2026 05:31
@github-actions github-actions Bot added the ci label Jun 26, 2026

@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: 7b7c71d59c

ℹ️ 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 on lines +99 to +101
permissions:
id-token: write
pages: write

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve workflow-level read-only token defaults

Because .github/workflows/main.yml calls this reusable workflow without a permissions override, leaving this workflow with no top-level permissions makes the three build jobs inherit the repo/org default GITHUB_TOKEN permissions. In installations where Actions is still configured for read/write defaults, that includes pages: write, so the checkout/build/upload jobs retain the Pages write privilege this change is trying to confine to deploy-pages; keep a top-level read-only baseline such as contents: read and override only this deploy job for Pages/OIDC.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.63%. Comparing base (5f1e6ac) to head (f97f897).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #839   +/-   ##
=======================================
  Coverage   90.63%   90.63%           
=======================================
  Files          15       15           
  Lines         491      491           
  Branches      183      183           
=======================================
  Hits          445      445           
  Misses          8        8           
  Partials       38       38           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant