Skip to content

Commit 3403a8d

Browse files
Harden release workflow checkouts
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
1 parent 3139895 commit 3403a8d

6 files changed

Lines changed: 12 additions & 0 deletions

.github/workflows/reusable-release-policy-assemblyscript.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
fetch-depth: 0
26+
persist-credentials: false
2627
- id: calculate-version
2728
shell: bash
2829
run: |
@@ -55,6 +56,9 @@ jobs:
5556
with:
5657
node-version: "${{ env.NODE_VERSION }}"
5758
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
59+
with:
60+
fetch-depth: 0
61+
persist-credentials: false
5862
- name: Install npm
5963
run: npm install
6064
- name: Install npm dependencies

.github/workflows/reusable-release-policy-go-wasi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425
- id: calculate-version
2526
shell: bash
2627
run: |

.github/workflows/reusable-release-policy-go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425
- id: calculate-version
2526
shell: bash
2627
run: |

.github/workflows/reusable-release-policy-rego.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
fetch-depth: 0
36+
persist-credentials: false
3637
- id: calculate-version
3738
shell: bash
3839
run: |
@@ -70,6 +71,9 @@ jobs:
7071
- name: Install opa
7172
uses: kubewarden/github-actions/opa-installer@a4c174cd70a6b18027011907c2fa8fc5bb4107fd
7273
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
74+
with:
75+
fetch-depth: 0
76+
persist-credentials: false
7377
- name: Build policy
7478
working-directory: ${{ inputs.policy-working-dir }}
7579
shell: bash

.github/workflows/reusable-release-policy-rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425
- id: calculate-version
2526
shell: bash
2627
run: |

.github/workflows/reusable-release-policy-swift.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425
- id: calculate-version
2526
shell: bash
2627
run: |

0 commit comments

Comments
 (0)