Skip to content

Commit 7e38f78

Browse files
committed
Clean up workflows
1 parent 9b74553 commit 7e38f78

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v6
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
43+
with:
44+
persist-credentials: false
4345

4446
# Initializes the CodeQL tools for scanning.
4547
- name: Initialize CodeQL

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: 'Checkout ${{ github.ref }} ( ${{ github.sha }} )'
1919
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
2022

2123
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2224
with:
@@ -31,7 +33,7 @@ jobs:
3133
- name: set PY
3234
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
3335

34-
- uses: actions/cache@v5
36+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3537
with:
3638
path: ~/.cache/pre-commit
3739
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

0 commit comments

Comments
 (0)