[#2794] Added 'pull-requests: read' permission to CI deploy job for 'gh pr view'. - #2797
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
WalkthroughThe workflow clarifies default permissions, preserves the build job’s existing scopes, and adds explicit contents and pull-request read permissions to the deploy job. ChangesWorkflow permissions
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
📖 Documentation preview for this pull request has been deployed to Netlify: https://6a5850415103403266a2bf4b--vortex-docs.netlify.app This preview is rebuilt on every commit and is not the production documentation site. |
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
This comment has been minimized.
This comment has been minimized.
2 similar comments
|
Code coverage (threshold: 90%) Per-class coverage |
|
Code coverage (threshold: 90%) Per-class coverage |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2797 +/- ##
==========================================
- Coverage 86.71% 86.27% -0.44%
==========================================
Files 97 90 -7
Lines 4757 4598 -159
Branches 47 3 -44
==========================================
- Hits 4125 3967 -158
+ Misses 632 631 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closes #2794
Summary
The
deployjob in.github/workflows/build-test-deploy.ymldeclared nopermissions:block and inherited the repo-wide least-privilegecontents: readdefault.Its "Resolve deploy target" step runs
gh pr viewto resolve the PR head SHA and branch, which requirespull-requests: read, so a manualworkflow_dispatchrun withdeploy_target=pr-<number>failed on private repos withResource not accessible by integration.This adds a job-level
permissions:block grantingcontents: read(restated because a job-level block replaces rather than merges the inherited default, so checkout and artifact download keep their access) andpull-requests: read.This mirrors the established pattern already used in
.github/workflows/test-vr.yml, which declarespull-requests: readnext to its owngh pr viewcall.Changes
permissions:block (contents: read+pull-requests: read) to thedeployjob in.github/workflows/build-test-deploy.yml._baseline,deploy_types_none_gha,provision_profile) that snapshot this workflow.Screenshots
N/A - non-visual CI configuration change.
Before / After
Summary by CodeRabbit