Skip to content

Commit 96591b1

Browse files
committed
Pin guide workflow actions
1 parent 2ea481d commit 96591b1

4 files changed

Lines changed: 29 additions & 17 deletions

File tree

‎.github/workflows/gradle.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches:
88
- master
9+
10+
permissions:
11+
contents: read
12+
913
jobs:
1014
test_matrix:
1115
name: Generate Guide Test Matrix
@@ -14,7 +18,7 @@ jobs:
1418
matrix: ${{ steps.test_matrix_step.outputs.matrix }}
1519
has_tasks: ${{ steps.test_matrix_step.outputs.has_tasks }}
1620
steps:
17-
- uses: actions/checkout@v6.0.2
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1822
with:
1923
fetch-depth: 0
2024
- name: Generate Guide Test Matrix
@@ -42,17 +46,17 @@ jobs:
4246
env:
4347
JDK_VERSION: ${{ matrix.java }}
4448
steps:
45-
- uses: actions/checkout@v6.0.2
49+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4650
with:
4751
fetch-depth: 0
48-
- uses: actions/cache@v5.0.5
52+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4953
with:
5054
path: ~/.gradle/caches
5155
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
5256
restore-keys: |
5357
${{ runner.os }}-gradle-
5458
- name: Set up JDK
55-
uses: actions/setup-java@v5.2.0
59+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
5660
with:
5761
distribution: 'adopt'
5862
java-version: ${{ matrix.java }}

‎.github/workflows/publish.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ on:
33
push:
44
branches:
55
- master
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
build:
812
runs-on: ubuntu-latest
913
env:
1014
JDK_VERSION: '25'
1115
steps:
12-
- uses: actions/checkout@v6.0.2
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1317
with:
1418
fetch-depth: 0
15-
- uses: actions/cache@v5.0.5
19+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
1620
with:
1721
path: ~/.gradle/caches
1822
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
1923
restore-keys: |
2024
${{ runner.os }}-gradle-
2125
- name: Set up JDK
22-
uses: actions/setup-java@v5.2.0
26+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
2327
with:
2428
distribution: 'temurin'
2529
java-version: 25
@@ -37,7 +41,7 @@ jobs:
3741
version=`echo "${tmp_version[0]}.${tmp_version[1]}.x"`
3842
echo ::set-output name=guides_version::${version}
3943
- name: Publish to Github Pages
40-
uses: micronaut-projects/github-pages-deploy-action@master
44+
uses: micronaut-projects/github-pages-deploy-action@76d63aafbab7108d74e83be4e5b3b0501382e829 # master
4145
env:
4246
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4347
BRANCH: gh-pages

‎.github/workflows/python-scripts.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
name: Test Python Scripts
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v6.0.2
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
- name: Set up Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2424
with:
2525
python-version: '3.x'
2626
- name: Run Tests

‎.github/workflows/snapshot.yml‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ on:
33
schedule:
44
- cron: '0 5 * * 1-5'
55
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
test_matrix:
812
name: Generate Guide Test Matrix
913
runs-on: ubuntu-latest
1014
outputs:
1115
matrix: ${{ steps.test_matrix_step.outputs.matrix }}
1216
steps:
13-
- uses: actions/checkout@v6.0.2
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1418
- name: Set up JDK
15-
uses: actions/setup-java@v5.2.0
19+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
1620
with:
1721
distribution: 'adopt'
1822
java-version: '25'
19-
- uses: actions/cache@v5.0.5
23+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
2024
with:
2125
path: ~/.gradle/caches
2226
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@@ -42,17 +46,17 @@ jobs:
4246
env:
4347
JDK_VERSION: ${{ matrix.java }}
4448
steps:
45-
- uses: actions/checkout@v6.0.2
49+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4650
with:
4751
fetch-depth: 0
48-
- uses: actions/cache@v5.0.5
52+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4953
with:
5054
path: ~/.gradle/caches
5155
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
5256
restore-keys: |
5357
${{ runner.os }}-gradle-
5458
- name: Set up JDK
55-
uses: actions/setup-java@v5.2.0
59+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
5660
with:
5761
distribution: 'adopt'
5862
java-version: ${{ matrix.java }}
@@ -63,4 +67,4 @@ jobs:
6367
env:
6468
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
6569
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
66-
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
70+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

0 commit comments

Comments
 (0)