Repository navigation
CLP-1174 split unified dogfooding in two steps - #6340
Conversation
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| contents: write |
There was a problem hiding this comment.
💡 Security: contents permission raised from read to write in both jobs
The old single job ran the same build-maven shadow-scan step and the same run-iris step with contents: read, so neither step needs write access to the repository. The split gives both build and run_iris contents: write, which lets their GITHUB_TOKEN push commits and tags. run_iris has no checkout and only calls an external action, so this widens what a compromised or misbehaving third-party action could do. Keep contents: read in both jobs unless a new requirement is documented.
Restore least-privilege read access (apply to both jobs):
permissions:
id-token: write
contents: read
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 1 closed / 2 findings🔴 High risk · Granting build and IRIS jobs contents: write could let a compromised or misconfigured action alter repository files. Splits the 💡 Security: contents permission raised from read to write in both jobs📄 .github/workflows/unified-dogfooding.yml:15-17 📄 .github/workflows/unified-dogfooding.yml:44-46 The old single job ran the same Restore least-privilege read access (apply to both jobs)✅ 1 closedClosed: Bug: Workflow-level cancel-in-progress can still cancel a running IRIS job
🤖 Prompt for agentsVerificationFunctional validation No results Rules No rules evaluated Auto-approval Not enabledOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
aurelien-coet-sonarsource
left a comment
There was a problem hiding this comment.
LGTM 👍





Part of CLP-906
Summary by Gitar
unified-dogfoodingintobuildandrun_irisjobsrun_irisruns only whenbuildsucceeds vianeedsconcurrencygroup withcancel-in-progress: truerun_irisuses a single-queueirisconcurrency groupbuildjob now requestscontents: writeThis will update automatically on new commits.