Skip to content

Commit b163568

Browse files
caxu-rhacornett21
authored andcommitted
Don't persist credentials when checking out repository
Signed-off-by: Caleb Xu <caxu@redhat.com>
1 parent fd4f2b1 commit b163568

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
runs-on: ubuntu-latest
7272
steps:
7373
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
74+
with:
75+
persist-credentials: false
7476

7577
- name: Install system deps
7678
run: 'sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev'

.github/workflows/build-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
23+
with:
24+
persist-credentials: false
25+
2326
- name: Set Env Tags
2427
run: echo RELEASE_TAG=$(echo $GITHUB_REF | cut -d '/' -f 3) >> $GITHUB_ENV
2528

.github/workflows/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ jobs:
1010
steps:
1111
- name: 'Checkout Repository'
1212
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
13+
with:
14+
persist-credentials: false
15+
1316
- name: 'Dependency Review'
1417
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0

.github/workflows/go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
14+
with:
15+
persist-credentials: false
1416

1517
- name: Install system deps
1618
run: 'sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev'

0 commit comments

Comments
 (0)