Skip to content

Commit ef97dee

Browse files
authored
do not persist git credentials when not needed
and make explicit when we do need it
1 parent 3a7f15e commit ef97dee

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
17+
with:
18+
persist-credentials: false
1719
- uses: cpp-linter/cpp-linter-action@main
1820
id: linter
1921
continue-on-error: true

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2626
with:
27+
persist-credentials: true # needed for `git push`
2728
fetch-depth: 0
2829
ref: ${{ inputs.ref }}
2930
- name: Config git name and email

.github/workflows/self-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
steps:
4141
- name: Checkout
4242
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
43+
with:
44+
persist-credentials: false
4345

4446
- name: Cache the build artifacts
4547
id: cache-build

0 commit comments

Comments
 (0)