Skip to content

Commit f7159f2

Browse files
authored
GH-48326: [CI] Stop specifying hash for actions/* GitHub Actions (#48327)
### Rationale for this change Dependabot sometimes failed to update hash. For example: #48301 The ASF GitHub Actions policy doesn't requiring pinning `actions/*` actions: https://infra.apache.org/github-actions-policy.html > External actions > > You MAY use all actions internal to the `apache/*`, `github/*` and `actions/*` namespaces without restrictions. > > You MUST pin all external actions to the specific git hash (SHA1) of the action that has been reviewed for use by the project. For instance, you MUST pin `foobar/baz-action@ 8843d7f92416211de9ebb963ff4ce28125932878`. We can avoid the Dependabot behavior by removing hash from `actions/*` actions. ### What changes are included in this PR? * Remove hash from `actions/*` actions. * Use `@ vX` instead of `@ vX.Y.Z` to reduce Dependabot updates. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #48326 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent b0fff52 commit f7159f2

24 files changed

+95
-95
lines changed

.github/workflows/archery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ jobs:
5858
timeout-minutes: 15
5959
steps:
6060
- name: Checkout Arrow
61-
uses: actions/checkout@v6.0.0
61+
uses: actions/checkout@v6
6262
with:
6363
fetch-depth: 0
6464
- name: Git Fixup
6565
shell: bash
6666
run: git branch $ARCHERY_DEFAULT_BRANCH origin/$ARCHERY_DEFAULT_BRANCH || true
6767
- name: Setup Python
68-
uses: actions/setup-python@v6.1.0
68+
uses: actions/setup-python@v6
6969
with:
7070
python-version: '3.12'
7171
- name: Install pygit2 binary wheel

.github/workflows/check_labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- name: Checkout Arrow
4545
if: github.event_name == 'pull_request'
46-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
46+
uses: actions/checkout@v6
4747
- name: Check
4848
id: check
4949
env:

.github/workflows/comment_bot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
pull-requests: write
3737
steps:
3838
- name: Checkout Arrow
39-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
39+
uses: actions/checkout@v6
4040
with:
4141
path: arrow
4242
# fetch the tags for version number generation
4343
fetch-depth: 0
4444
- name: Set up Python
45-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
45+
uses: actions/setup-python@v6
4646
with:
4747
python-version: 3.12
4848
- name: Install Archery and Crossbow dependencies
@@ -63,7 +63,7 @@ jobs:
6363
if: github.event.comment.body == 'take'
6464
runs-on: ubuntu-latest
6565
steps:
66-
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
66+
- uses: actions/github-script@v8
6767
with:
6868
github-token: ${{ secrets.GITHUB_TOKEN }}
6969
script: |

.github/workflows/cpp.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
UBUNTU: ${{ matrix.ubuntu }}
111111
steps:
112112
- name: Checkout Arrow
113-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
113+
uses: actions/checkout@v6
114114
with:
115115
fetch-depth: 0
116116
submodules: recursive
@@ -123,7 +123,7 @@ jobs:
123123
- name: Setup Python on hosted runner
124124
if: |
125125
matrix.runs-on == 'ubuntu-latest'
126-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
126+
uses: actions/setup-python@v6
127127
with:
128128
python-version: 3
129129
- name: Setup Python on self-hosted runner
@@ -163,7 +163,7 @@ jobs:
163163
timeout-minutes: 45
164164
steps:
165165
- name: Checkout Arrow
166-
uses: actions/checkout@v6.0.0
166+
uses: actions/checkout@v6
167167
with:
168168
fetch-depth: 0
169169
submodules: recursive
@@ -218,7 +218,7 @@ jobs:
218218
sysctl -a | grep cpu
219219
sysctl -a | grep "hw.optional"
220220
- name: Checkout Arrow
221-
uses: actions/checkout@v6.0.0
221+
uses: actions/checkout@v6
222222
with:
223223
fetch-depth: 0
224224
submodules: recursive
@@ -235,7 +235,7 @@ jobs:
235235
$(brew --prefix bash)/bin/bash \
236236
ci/scripts/install_minio.sh latest ${ARROW_HOME}
237237
- name: Set up Python
238-
uses: actions/setup-python@v6.1.0
238+
uses: actions/setup-python@v6
239239
with:
240240
python-version: 3.12
241241
- name: Install Google Cloud Storage Testbench
@@ -344,7 +344,7 @@ jobs:
344344
/d 1 `
345345
/f
346346
- name: Checkout Arrow
347-
uses: actions/checkout@v6.0.0
347+
uses: actions/checkout@v6
348348
with:
349349
fetch-depth: 0
350350
submodules: recursive
@@ -378,7 +378,7 @@ jobs:
378378
https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2024-09-13T20-26-02Z
379379
chmod +x /usr/local/bin/minio.exe
380380
- name: Set up Python
381-
uses: actions/setup-python@v6.1.0
381+
uses: actions/setup-python@v6
382382
id: python-install
383383
with:
384384
python-version: '3.12'

.github/workflows/cpp_extra.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,18 @@ jobs:
121121
DOCKER_VOLUME_PREFIX: ".docker/"
122122
steps:
123123
- name: Checkout Arrow
124-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
124+
uses: actions/checkout@v6
125125
with:
126126
fetch-depth: 0
127127
submodules: recursive
128128
- name: Cache Docker Volumes
129-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
129+
uses: actions/cache@v4
130130
with:
131131
path: .docker
132132
key: extra-${{ matrix.image }}-${{ hashFiles('cpp/**') }}
133133
restore-keys: extra-${{ matrix.image }}-
134134
- name: Setup Python
135-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
135+
uses: actions/setup-python@v6
136136
with:
137137
python-version: 3
138138
- name: Setup Archery
@@ -203,21 +203,21 @@ jobs:
203203
REPO: ghcr.io/${{ github.repository }}-dev
204204
steps:
205205
- name: Checkout Arrow
206-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
206+
uses: actions/checkout@v6
207207
with:
208208
fetch-depth: 0
209209
submodules: recursive
210210
- name: Free up disk space
211211
run: |
212212
ci/scripts/util_free_space.sh
213213
- name: Cache Docker Volumes
214-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
214+
uses: actions/cache@v4
215215
with:
216216
path: .docker
217217
key: jni-${{ matrix.platform.runs-on }}-${{ hashFiles('cpp/**') }}
218218
restore-keys: jni-${{ matrix.platform.runs-on }}-
219219
- name: Setup Python
220-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
220+
uses: actions/setup-python@v6
221221
with:
222222
python-version: 3
223223
- name: Setup Archery
@@ -255,7 +255,7 @@ jobs:
255255
MACOSX_DEPLOYMENT_TARGET: "14.0"
256256
steps:
257257
- name: Checkout Arrow
258-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
258+
uses: actions/checkout@v6
259259
with:
260260
fetch-depth: 0
261261
submodules: recursive
@@ -283,7 +283,7 @@ jobs:
283283
run: |
284284
echo "CCACHE_DIR=${PWD}/ccache" >> ${GITHUB_ENV}
285285
- name: Cache ccache
286-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
286+
uses: actions/cache@v4
287287
with:
288288
path: ccache
289289
key: jni-macos-${{ hashFiles('cpp/**') }}

.github/workflows/cpp_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
/d 1 `
7878
/f
7979
- name: Checkout Arrow
80-
uses: actions/checkout@v6.0.0
80+
uses: actions/checkout@v6
8181
with:
8282
fetch-depth: 0
8383
submodules: recursive

.github/workflows/dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
timeout-minutes: 15
4848
steps:
4949
- name: Checkout Arrow
50-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
50+
uses: actions/checkout@v6
5151
with:
5252
fetch-depth: 0
5353
- name: Install pre-commit
@@ -88,11 +88,11 @@ jobs:
8888
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
8989
steps:
9090
- name: Checkout Arrow
91-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
91+
uses: actions/checkout@v6
9292
with:
9393
fetch-depth: 0
9494
- name: Install Python
95-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
95+
uses: actions/setup-python@v6
9696
with:
9797
python-version: '3.12'
9898
- name: Install Ruby

.github/workflows/dev_pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
name: Process
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
46+
- uses: actions/checkout@v6
4747
with:
4848
repository: apache/arrow
4949
ref: main
@@ -53,7 +53,7 @@ jobs:
5353
if: |
5454
(github.event.action == 'opened' ||
5555
github.event.action == 'edited')
56-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
56+
uses: actions/github-script@v8
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}
5959
script: |
@@ -64,7 +64,7 @@ jobs:
6464
if: |
6565
(github.event.action == 'opened' ||
6666
github.event.action == 'edited')
67-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
67+
uses: actions/github-script@v8
6868
with:
6969
github-token: ${{ secrets.GITHUB_TOKEN }}
7070
script: |
@@ -75,7 +75,7 @@ jobs:
7575
if: |
7676
(github.event.action == 'opened' ||
7777
github.event.action == 'edited')
78-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
78+
uses: actions/github-script@v8
7979
with:
8080
debug: true
8181
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -87,7 +87,7 @@ jobs:
8787
if: |
8888
(github.event.action == 'opened' ||
8989
github.event.action == 'synchronize')
90-
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
90+
uses: actions/labeler@v6
9191
with:
9292
repo-token: ${{ secrets.GITHUB_TOKEN }}
9393
configuration-path: .github/workflows/dev_pr/labeler.yml

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
JDK: 17
4040
steps:
4141
- name: Checkout Arrow
42-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
42+
uses: actions/checkout@v6
4343
with:
4444
fetch-depth: 0
4545
- name: Free up disk space
@@ -52,7 +52,7 @@ jobs:
5252
key: debian-docs-${{ hashFiles('cpp/**') }}
5353
restore-keys: debian-docs-
5454
- name: Setup Python
55-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
55+
uses: actions/setup-python@v6
5656
with:
5757
python-version: 3.12
5858
- name: Setup Archery

.github/workflows/docs_light.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
PYTHON: "3.12"
5050
steps:
5151
- name: Checkout Arrow
52-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
52+
uses: actions/checkout@v6
5353
with:
5454
fetch-depth: 0
5555
- name: Cache Docker Volumes
@@ -59,7 +59,7 @@ jobs:
5959
key: conda-docs-${{ hashFiles('cpp/**') }}
6060
restore-keys: conda-docs-
6161
- name: Setup Python
62-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
62+
uses: actions/setup-python@v6
6363
with:
6464
python-version: 3.12
6565
- name: Setup Archery

0 commit comments

Comments
 (0)