Skip to content

Commit 9fb8ff8

Browse files
committed
ci(): pin GitHub Actions to full commit SHAs (#16702)
1 parent 60cc19d commit 9fb8ff8

32 files changed

+166
-166
lines changed

.github/actions/ci-optimization/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ runs:
5151
else
5252
echo "trigger=pr" >> $GITHUB_OUTPUT
5353
fi
54-
- uses: dorny/paths-filter@v3
54+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
5555
id: filter
5656
with:
5757
token: "" # Empty token forces it to use raw git commands.

.github/actions/docker-custom-build-and-push/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
steps:
5454
- name: Docker meta
5555
id: docker_meta
56-
uses: docker/metadata-action@v5
56+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
5757
with:
5858
images: ${{ inputs.images }}
5959
flavor: |
@@ -78,7 +78,7 @@ runs:
7878
7979
# Code for testing the build when not pushing to Docker Hub.
8080
- name: Build and Load image for testing (if not publishing)
81-
uses: docker/build-push-action@v6
81+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
8282
if: ${{ inputs.publish != 'true' }}
8383
with:
8484
context: ${{ inputs.context }}
@@ -97,32 +97,32 @@ runs:
9797
cache-to: |
9898
type=inline
9999
- name: Upload image locally for testing (if not publishing)
100-
uses: ishworkh/container-image-artifact-upload@v2.0.0
100+
uses: ishworkh/container-image-artifact-upload@5d71a2417f0576fa11fe770fb04ece58c4587714 # v2.0.0
101101
if: ${{ inputs.publish != 'true' }}
102102
with:
103103
image: ${{ steps.single_tag.outputs.SINGLE_TAG }}
104104
retention_days: "2"
105105

106106
# Code for building multi-platform images and pushing to Docker Hub.
107107
- name: Set up QEMU
108-
uses: docker/setup-qemu-action@v3
108+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
109109
if: ${{ inputs.publish == 'true' && inputs.depot-project == '' }}
110110
- name: Set up Docker Buildx
111-
uses: docker/setup-buildx-action@v3
111+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
112112
if: ${{ inputs.publish == 'true' && inputs.depot-project == '' }}
113113
- name: Setup Depot CLI
114-
uses: depot/setup-action@v1
114+
uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1
115115
if: ${{ inputs.publish == 'true' && inputs.depot-project != '' }}
116116
- name: Login to DockerHub
117-
uses: docker/login-action@v3
117+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
118118
if: ${{ inputs.publish == 'true' }}
119119
with:
120120
username: ${{ inputs.username }}
121121
password: ${{ inputs.password }}
122122

123123
# Depot variant.
124124
- name: Build and Push Multi-Platform image
125-
uses: depot/build-push-action@v1
125+
uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1
126126
if: ${{ inputs.publish == 'true' && inputs.depot-project != '' }}
127127
with:
128128
project: ${{ inputs.depot-project }}
@@ -140,7 +140,7 @@ runs:
140140
type=inline
141141
142142
- name: Build and Push Multi-Platform image
143-
uses: docker/build-push-action@v6
143+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
144144
if: ${{ inputs.publish == 'true' && inputs.depot-project == '' }}
145145
with:
146146
context: ${{ inputs.context }}

.github/actions/report-test-results/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ runs:
1818
steps:
1919
- name: Upload test results
2020
if: (!cancelled())
21-
uses: actions/upload-artifact@v4
21+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
2222
with:
2323
name: ${{ inputs.artifact-name }}
2424
path: ${{ inputs.test-results-paths }}
2525
retention-days: 7
2626

2727
- name: Publish test results
2828
if: (!cancelled())
29-
uses: test-summary/action@v2
29+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
3030
with:
3131
paths: ${{ inputs.junit-file-globs }}
3232
show: fail

.github/workflows/actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 60
3232
steps:
33-
- uses: actions/checkout@v6
34-
- uses: actions/setup-python@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
34+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3535
with:
3636
python-version: "3.10"
3737
- name: Test packages are correct
@@ -50,7 +50,7 @@ jobs:
5050
test-results-paths: "datahub-actions/test-results/**"
5151
junit-file-globs: "datahub-actions/test-results/*.xml"
5252
- name: Upload datahub-actions coverage to Codecov
53-
uses: codecov/codecov-action@v5
53+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
5454
with:
5555
token: ${{ secrets.CODECOV_TOKEN }}
5656
#handle_no_reports_found: true
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
steps:
6767
- name: Upload
68-
uses: actions/upload-artifact@v4
68+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6969
with:
7070
name: Event File
7171
path: ${{ github.event_path }}

.github/workflows/agent-context.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
runs-on: ubuntu-latest
3232
timeout-minutes: 60
3333
steps:
34-
- uses: actions/checkout@v6
35-
- uses: actions/setup-python@v6
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
35+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3636
with:
3737
python-version: "3.10"
3838
- name: Test packages are correct
@@ -51,7 +51,7 @@ jobs:
5151
test-results-paths: "datahub-agent-context/test-results/**"
5252
junit-file-globs: "datahub-agent-context/test-results/*.xml"
5353
- name: Upload datahub-agent-context coverage to Codecov
54-
uses: codecov/codecov-action@v5
54+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
5555
with:
5656
token: ${{ secrets.CODECOV_TOKEN }}
5757
disable_search: true
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
steps:
6868
- name: Upload
69-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7070
with:
7171
name: Event File
7272
path: ${{ github.event_path }}

.github/workflows/airflow-plugin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
fail-fast: false
8080
steps:
8181
- name: Set up JDK 17
82-
uses: actions/setup-java@v5
82+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
8383
with:
8484
distribution: "zulu"
8585
java-version: 17
@@ -104,7 +104,7 @@ jobs:
104104
junit-file-globs: "metadata-ingestion-modules/airflow-plugin/test-results/*.xml"
105105
- name: Upload coverage to Codecov with ingestion flag
106106
if: (!cancelled())
107-
uses: codecov/codecov-action@v5
107+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
108108
with:
109109
token: ${{ secrets.CODECOV_TOKEN }}
110110
directory: ./build/coverage-reports/metadata-ingestion-modules/airflow-plugin/
@@ -115,7 +115,7 @@ jobs:
115115
override_branch: ${{ github.head_ref || github.ref_name }}
116116
- name: Upload test results to Codecov
117117
if: ${{ !cancelled() }}
118-
uses: codecov/test-results-action@v1
118+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
119119
with:
120120
token: ${{ secrets.CODECOV_TOKEN }}
121121
override_branch: ${{ github.head_ref || github.ref_name }}
@@ -124,7 +124,7 @@ jobs:
124124
runs-on: ubuntu-latest
125125
steps:
126126
- name: Upload
127-
uses: actions/upload-artifact@v4
127+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
128128
with:
129129
name: Event File
130130
path: ${{ github.event_path }}

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
timeout-minutes: 60
7171
needs: setup
7272
steps:
73-
- uses: szenius/set-timezone@v2.0
73+
- uses: szenius/set-timezone@1f9716b0f7120e344f0c62bb7b1ee98819aefd42 # v2.0
7474
with:
7575
timezoneLinux: ${{ matrix.timezone }}
7676
- name: Check out the repo
@@ -79,22 +79,22 @@ jobs:
7979
checkout-head-only: false
8080
- name: Free up disk space
8181
uses: ./.github/actions/free-disk-space
82-
- uses: actions/setup-python@v6
82+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
8383
with:
8484
python-version: "3.10"
85-
- uses: actions/cache@v4
85+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
8686
with:
8787
path: |
8888
~/.cache/uv
8989
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements.txt') }}
9090
- name: Install dependencies
9191
run: ./metadata-ingestion/scripts/install_deps.sh
9292
- name: Set up JDK 17
93-
uses: actions/setup-java@v5
93+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
9494
with:
9595
distribution: "zulu"
9696
java-version: 17
97-
- uses: gradle/actions/setup-gradle@v4
97+
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4
9898
- name: Disk Space Analysis
9999
run: |
100100
echo "=== Disk Usage Overview ==="
@@ -198,7 +198,7 @@ jobs:
198198
uses: ./.github/actions/ensure-codegen-updated
199199
- name: Upload backend coverage to Codecov
200200
if: ${{ (matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' && github.event_name != 'release') }}
201-
uses: codecov/codecov-action@v5
201+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
202202
with:
203203
token: ${{ secrets.CODECOV_TOKEN }}
204204
files: ${{ env.BACKEND_FILES }}
@@ -210,7 +210,7 @@ jobs:
210210
verbose: true
211211
- name: Upload backend coverage to Codecov on release
212212
if: ${{ (matrix.command == 'except_metadata_ingestion' && github.event_name == 'release' ) }}
213-
uses: codecov/codecov-action@v5
213+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
214214
with:
215215
token: ${{ secrets.CODECOV_TOKEN }}
216216
files: ${{ env.BACKEND_FILES }}
@@ -224,7 +224,7 @@ jobs:
224224

225225
- name: Upload frontend coverage to Codecov
226226
if: ${{ (matrix.command == 'frontend' && needs.setup.outputs.frontend_change == 'true' && github.event_name != 'release') }}
227-
uses: codecov/codecov-action@v5
227+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
228228
with:
229229
token: ${{ secrets.CODECOV_TOKEN }}
230230
files: ${{ env.FRONTEND_FILES }}
@@ -237,7 +237,7 @@ jobs:
237237

238238
- name: Upload frontend coverage to Codecov on Release
239239
if: ${{ (matrix.command == 'frontend' && github.event_name == 'release') }}
240-
uses: codecov/codecov-action@v5
240+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
241241
with:
242242
token: ${{ secrets.CODECOV_TOKEN }}
243243
files: ${{ env.FRONTEND_FILES }}
@@ -250,12 +250,12 @@ jobs:
250250
override_branch: ${{ github.head_ref || github.ref_name }}
251251
- name: Upload test results to Codecov
252252
if: ${{ !cancelled() && github.event_name != 'release' }}
253-
uses: codecov/test-results-action@v1
253+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
254254
with:
255255
token: ${{ secrets.CODECOV_TOKEN }}
256256
- name: Upload test results to Codecov on release
257257
if: ${{ !cancelled() && github.event_name == 'release' }}
258-
uses: codecov/test-results-action@v1
258+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
259259
with:
260260
token: ${{ secrets.CODECOV_TOKEN }}
261261
override_branch: ${{ github.head_ref || github.ref_name }}
@@ -264,7 +264,7 @@ jobs:
264264
runs-on: ubuntu-latest
265265
steps:
266266
- name: Upload
267-
uses: actions/upload-artifact@v4
267+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
268268
with:
269269
name: Event File
270270
path: ${{ github.event_path }}

.github/workflows/check-datahub-jars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3333
with:
3434
python-version: "3.10"
35-
- uses: actions/cache@v4
35+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3636
with:
3737
path: |
3838
~/.cache/uv
3939
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements.txt') }}
4040
- name: Install dependencies
4141
run: ./metadata-ingestion/scripts/install_deps.sh
4242
- name: Set up JDK 17
43-
uses: actions/setup-java@v5
43+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
4444
with:
4545
distribution: "zulu"
4646
java-version: 17
47-
- uses: gradle/actions/setup-gradle@v4
47+
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4
4848
- name: check ${{ matrix.command }} jar
4949
run: |
5050
./gradlew :metadata-integration:java:${{ matrix.command }}:build --info

.github/workflows/check-python-deps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: acryldata/sane-checkout-action@186e92cc5948a9c3e1cc7a96eaff9f776f3fc8e3 # v7
2626

2727
- name: Set up Python 3.11
28-
uses: actions/setup-python@v6
28+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2929
with:
3030
python-version: "3.11"
3131
cache: "pip"
@@ -358,7 +358,7 @@ jobs:
358358
exit 1
359359
360360
- name: Upload event file
361-
uses: actions/upload-artifact@v4
361+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
362362
if: always()
363363
with:
364364
name: Event File

.github/workflows/close-stale-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v10
13+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10
1414
with:
1515
ascending: true
1616
operations-per-run: 100

0 commit comments

Comments
 (0)