Skip to content

Commit 017c1d9

Browse files
committed
chore: update GitHub Actions to use specific version tags for actions
1 parent 316da3c commit 017c1d9

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
name: Lint and Test
1919
runs-on: ubuntu-22.04
2020
steps:
21-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
21+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0
2222
with:
2323
persist-credentials: false
2424
- name: Install Poetry
2525
run: pipx install poetry==1.8.3
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
28+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
2929
with:
3030
python-version-file: .python-version
3131
cache: poetry

.github/workflows/deploy_mkdocs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ on:
66
branches:
77
- master
88
- main
9+
- KEH-2331_add_zizmor
910
permissions:
1011
contents: write
1112
jobs:
1213
deploy:
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/checkout@e31de5234b9f8995739874a8ce0492dc87873e2 # v4
16+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0
1617
with:
1718
persist-credentials: false
1819
- name: Configure Git Credentials
1920
run: |
2021
git config user.name github-actions[bot]
2122
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
22-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
23+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
2324
with:
2425
python-version: 3.x
2526
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
26-
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
27+
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
2728
with:
2829
key: mkdocs-material-${{ env.cache_id }}
2930
path: .cache

.github/workflows/mega-linter.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ jobs:
6666
steps:
6767
# Git Checkout
6868
- name: Checkout Code
69-
uses: actions/checkout@v4
69+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0
7070
with:
7171
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
72+
persist-credentials: false
7273

7374
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
7475
# improve performance
@@ -114,7 +115,7 @@ jobs:
114115

115116
# Upload MegaLinter artifacts
116117
- name: Archive production artifacts
117-
uses: actions/upload-artifact@v4
118+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
118119
if: success() || failure()
119120
with:
120121
name: MegaLinter reports
@@ -159,8 +160,11 @@ jobs:
159160
) &&
160161
!contains(github.event.head_commit.message, 'skip fix')
161162
run: |
162-
echo "PR Number - ${{ steps.cpr.outputs.pull-request-number }}"
163-
echo "PR URL - ${{ steps.cpr.outputs.pull-request-url }}"
163+
echo "PR Number - ${PR_NUMBER}"
164+
echo "PR URL - ${PR_URL}"
165+
env:
166+
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
167+
PR_URL: ${{ steps.cpr.outputs.pull-request-url }}
164168

165169
# Push new commit if applicable
166170
# (for now works only on PR from same repository, not from forks)

0 commit comments

Comments
 (0)