Skip to content

Commit 94ccc6c

Browse files
authored
[CI] Pin all actions/* workflows (#2821)
1 parent 23b8a90 commit 94ccc6c

14 files changed

Lines changed: 43 additions & 44 deletions

.github/linters/zizmor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ rules:
1919
unpinned-uses:
2020
config:
2121
policies:
22-
actions/*: any
2322
github/*: any
2423
r-lib/actions/check-r-package: any
2524
r-lib/actions/setup-r: any

.github/workflows/basic-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ['windows-latest']
3636
steps:
3737
- name: 'Checkout ${{ github.ref }} ( ${{ github.sha }} )'
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939
with:
4040
fetch-depth: 2
4141
persist-credentials: false

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v6
43+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444
with:
4545
persist-credentials: false
4646

.github/workflows/docker-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ jobs:
5959
run:
6060
shell: bash
6161
steps:
62-
- uses: actions/checkout@v6
62+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363
with:
6464
persist-credentials: false
65-
- uses: actions/setup-java@v5
65+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6666
with:
6767
distribution: 'zulu'
6868
java-version: 17
6969
- name: Cache Maven packages
70-
uses: actions/cache@v5
70+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
7171
with:
7272
path: ~/.m2
7373
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/docs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
build:
4141
runs-on: ubuntu-22.04
4242
steps:
43-
- uses: actions/checkout@v6
43+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444
with:
4545
fetch-depth: 0
4646
persist-credentials: true # zizmor: ignore[credential-persistence]
4747
- name: Set up Java
48-
uses: actions/setup-java@v5
48+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
4949
with:
5050
distribution: 'zulu'
5151
java-version: '11'
@@ -54,7 +54,7 @@ jobs:
5454
- name: Compile ScalaDoc
5555
run: mvn generate-sources scala:doc -pl !common,!snowflake,!flink && mkdir -p docs/api/scaladoc/spark && cp -r spark/common/target/site/scaladocs/* docs/api/scaladoc/spark
5656
- name: Set up Node.js
57-
uses: actions/setup-node@v6
57+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
5858
with:
5959
node-version: '18'
6060
cache: 'npm'
@@ -67,7 +67,7 @@ jobs:
6767
run: |
6868
cd docs-overrides
6969
npx gulp build
70-
- uses: actions/setup-python@v6
70+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7171
with:
7272
python-version: '3.11'
7373
- name: Install uv
@@ -121,25 +121,25 @@ jobs:
121121
fi
122122
- run: mkdir staging
123123
- run: cp -r site/* staging/
124-
- uses: actions/upload-artifact@v7
124+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
125125
with:
126126
name: generated-docs
127127
path: staging
128128
- name: Cache Python packages
129-
uses: actions/cache@v5
129+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
130130
with:
131131
path: ~/.cache/pip
132132
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
133133
restore-keys: |
134134
${{ runner.os }}-pip-
135135
- name: Cache Maven packages
136-
uses: actions/cache@v5
136+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
137137
with:
138138
path: ~/.m2
139139
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
140140
restore-keys: ${{ runner.os }}-m2
141141
- name: Cache Node modules
142-
uses: actions/cache@v5
142+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
143143
with:
144144
path: docs-overrides/node_modules
145145
key: ${{ runner.os }}-node-${{ hashFiles('docs-overrides/package-lock.json') }}

.github/workflows/example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
sedona: 1.8.0
5959
hadoop: 3.3.4
6060
steps:
61-
- uses: actions/checkout@v6
61+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6262
with:
6363
persist-credentials: false
64-
- uses: actions/setup-java@v5
64+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6565
with:
6666
distribution: 'zulu'
6767
java-version: '17'
@@ -74,14 +74,14 @@ jobs:
7474
- run: sudo apt-get update
7575
- run: sudo apt-get install sbt
7676
- name: Cache SBT
77-
uses: actions/cache@v5
77+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
7878
with:
7979
path: |
8080
~/.ivy2/cache
8181
~/.sbt
8282
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
8383
- name: Cache Maven packages
84-
uses: actions/cache@v5
84+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
8585
with:
8686
path: ~/.m2
8787
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/first-interaction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: First Interaction
39-
uses: actions/first-interaction@v3
39+
uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
4040
with:
4141
repo_token: ${{ secrets.GITHUB_TOKEN }}
4242
issue_message: |

.github/workflows/java.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ jobs:
8585
jdk: '11'
8686
skipTests: ''
8787
steps:
88-
- uses: actions/checkout@v6
88+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8989
with:
9090
persist-credentials: false
91-
- uses: actions/setup-java@v5
91+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
9292
with:
9393
distribution: 'zulu'
9494
java-version: ${{ matrix.jdk }}
95-
- uses: actions/setup-python@v6
95+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
9696
with:
9797
python-version: '3.10'
9898
- name: Cache Maven packages
99-
uses: actions/cache@v5
99+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
100100
with:
101101
path: ~/.m2
102102
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@@ -118,7 +118,7 @@ jobs:
118118
- run: cp spark-shaded/target/sedona-*.jar staging
119119
- run: |
120120
[ -d "flink-shaded/target/" ] && cp flink-shaded/target/sedona-*.jar staging 2>/dev/null || true
121-
- uses: actions/upload-artifact@v7
121+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
122122
with:
123123
name: generated-jars_spark-${{ matrix.spark }}_scala-${{ matrix.scala }}_jdk-${{ matrix.jdk }}
124124
path: staging

.github/workflows/links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
permissions:
3434
issues: write # required for Broken Links Report
3535
steps:
36-
- uses: actions/checkout@v6
36+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737
with:
3838
persist-credentials: false
3939
- name: Link Checker
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Broken Links Report
4747
if: steps.lychee.outputs.exit_code != 0 && github.event_name == 'schedule'
48-
uses: actions/github-script@v8
48+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4949
with:
5050
script: |
5151
const fs = require('fs');

.github/workflows/pyflink.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ jobs:
5353
matrix:
5454
python: ['3.11', '3.10']
5555
steps:
56-
- uses: actions/checkout@v6
56+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5757
with:
5858
persist-credentials: false
59-
- uses: actions/setup-java@v5
59+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6060
with:
6161
distribution: 'zulu'
6262
java-version: '11'
63-
- uses: actions/setup-python@v6
63+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6464
with:
6565
python-version: ${{ matrix.python }}
6666
- name: Install uv

0 commit comments

Comments
 (0)