Skip to content

Commit 53bef1b

Browse files
askbCopilot
andcommitted
CI: Harden gerrit-verify workflow permissions
Replace 'permissions: read-all' with least-privilege 'contents: read' (Sonar githubactions:S8234). Add '--only-binary :all:' and pin tox on the ACT-only local install step to lock resolved versions and prevent setup script execution (Sonar S8544, S8541). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Change-Id: I46e6b4fc67db5f8c8eb25aaf727bade9aebf618d Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
1 parent 6ec15af commit 53bef1b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/gerrit-verify.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ concurrency:
5353
group: gerrit-verify-${{ github.ref }}
5454
cancel-in-progress: true
5555

56-
permissions: read-all
56+
permissions:
57+
contents: read
5758

5859
jobs:
5960
prepare:
@@ -95,7 +96,8 @@ jobs:
9596
python-version: '3.x'
9697
- name: Install tox
9798
if: ${{ env.ACT == 'true' }}
98-
run: pip install --upgrade pip && pip install tox
99+
# ponytail: ACT-only local step; tox pinned for S8544, bump manually
100+
run: "pip install --only-binary :all: --upgrade pip && pip install --only-binary :all: tox==4.58.0"
99101
- name: Run docs & linkcheck
100102
if: ${{ env.ACT == 'true' }}
101103
run: tox -e docs,docs-linkcheck

0 commit comments

Comments
 (0)