Skip to content

Commit b0a5ca5

Browse files
committed
ci: satisfy required zizmor workflow policy
1 parent 851f158 commit b0a5ca5

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,17 @@ on:
2020
# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
2121
permissions:
2222
contents: read
23-
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
24-
pull-requests: write
2523

2624
jobs:
2725
dependency-review:
2826
runs-on: ubuntu-latest
2927
steps:
3028
- name: 'Checkout repository'
31-
uses: actions/checkout@v6
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3230
- name: 'Dependency Review'
33-
uses: actions/dependency-review-action@v4
31+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4
3432
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
35-
with:
36-
comment-summary-in-pr: always
33+
# No PR comment output to keep permissions read-only.
3734
# fail-on-severity: moderate
3835
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
3936
# retry-on-snapshot-warnings: true

.github/workflows/sonarcloud.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
permissions: {}
910

1011
jobs:
1112
sonarcloud:
@@ -16,11 +17,11 @@ jobs:
1617
contents: read
1718
pull-requests: write
1819
steps:
19-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2021
with:
2122
fetch-depth: 0
2223

23-
- uses: actions/setup-python@v6
24+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2425
with:
2526
python-version: '3.12'
2627

@@ -63,7 +64,7 @@ jobs:
6364
6465
- name: SonarCloud scan
6566
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.fork == false && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.pull_request.author_association)) }}
66-
uses: SonarSource/sonarcloud-github-action@ffc3010689be73b8e5ae0c57ce35968afd7909e8
67+
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7.0.0
6768
env:
6869
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6970
SONAR_TOKEN: ${{ steps.sonar_token.outputs.value }}

0 commit comments

Comments
 (0)