Skip to content

Commit 560c1cd

Browse files
committed
build: harden as per zizmor
1 parent 17b8170 commit 560c1cd

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/codeql.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ permissions:
2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2828
cancel-in-progress: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}
29-
29+
3030
jobs:
3131
analyze:
3232
name: Analyze
@@ -48,6 +48,7 @@ jobs:
4848
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
with:
5050
fetch-depth: 2
51+
persist-credentials: false
5152
# https://learn.microsoft.com/en-us/dotnet/devops/dotnet-secure-github-action
5253
# git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.
5354
# - run: git checkout HEAD^2

.github/workflows/dependency-review.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ jobs:
2727

2828
- name: 'Checkout Repository'
2929
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+
with:
31+
persist-credentials: false
3032
- name: 'Dependency Review'
3133
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

.github/workflows/sonarcloud.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727
with:
2828
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
29+
persist-credentials: false
2930
- name: Cache SonarCloud packages
3031
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
3132
with:

0 commit comments

Comments
 (0)