Skip to content

Commit 53acae2

Browse files
Michelangelo Partipiloclaude
andcommitted
ci: pin GitHub Actions to server SHAs
Align all uses: refs to the immutable commit SHAs used by weaviate/weaviate. Major versions bumped where necessary: checkout v6, docker/login v4, upload-artifact v7, download-artifact v8, cache v5. Tags preserved as comments. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e959ae7 commit 53acae2

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/create-release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
|| (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020
- name: Unpack secrets
2121
env:
2222
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
@@ -37,7 +37,7 @@ jobs:
3737
-Dcentral-publishing.waitUntil=published \
3838
deploy
3939
- name: Archive artifacts
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
4141
with:
4242
name: jar-files
4343
path: "target/*.jar"
@@ -49,12 +49,12 @@ jobs:
4949
needs: [ release ]
5050
steps:
5151
- name: Download artifacts to append to release
52-
uses: actions/download-artifact@v4
52+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
5353
with:
5454
name: jar-files
5555
path: target
5656
- name: Create a GitHub Release
57-
uses: softprops/action-gh-release@v1
57+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
5858
with:
5959
generate_release_notes: true
6060
draft: true

.github/workflows/test.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
name: Cache Maven dependencies
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-java@v4
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23+
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
2424
with:
2525
distribution: "zulu"
2626
java-version: "17"
@@ -31,8 +31,8 @@ jobs:
3131
name: Unit tests
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
35-
- uses: actions/setup-java@v4
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
35+
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
3636
with:
3737
distribution: "zulu"
3838
java-version: "17"
@@ -46,20 +46,20 @@ jobs:
4646
steps:
4747
- name: Login to Docker Hub
4848
if: ${{ !github.event.pull_request.head.repo.fork }}
49-
uses: docker/login-action@v3
49+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
5050
with:
5151
username: ${{ secrets.DOCKER_USERNAME }}
5252
password: ${{ secrets.DOCKER_PASSWORD }}
5353
- id: cache-check
54-
uses: actions/cache/restore@v4
54+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5555
env:
5656
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
5757
with:
5858
path: ${{ env.DOCKER_IMAGES_TAR }}
5959
key: ${{ env.DOCKER_CACHE_KEY }}
6060
lookup-only: true # Only check if cache exists, don't download
6161
- name: Free Disk Space (Ubuntu)
62-
uses: jlumbroso/free-disk-space@v1.3.1
62+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
6363
with:
6464
tool-cache: false
6565
android: true
@@ -77,7 +77,7 @@ jobs:
7777
docker save $IMG2VEC $MINIO -o $DOCKER_IMAGES_TAR
7878
- name: Cache images
7979
if: steps.cache-check.outputs.cache-hit != 'true'
80-
uses: actions/cache/save@v4
80+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
8181
env:
8282
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
8383
with:
@@ -94,16 +94,16 @@ jobs:
9494
WEAVIATE_VERSION:
9595
["1.32.24", "1.33.11", "1.34.7", "1.35.2", "1.36.9", "1.37.0-rc.0"]
9696
steps:
97-
- uses: actions/checkout@v4
97+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9898

99-
- uses: actions/cache/restore@v4
99+
- uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
100100
env:
101101
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
102102
with:
103103
path: ${{ env.DOCKER_IMAGES_TAR }}
104104
key: ${{ env.DOCKER_CACHE_KEY }}
105105
- name: Free Disk Space (Ubuntu)
106-
uses: jlumbroso/free-disk-space@v1.3.1
106+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
107107
with:
108108
tool-cache: false
109109
android: true
@@ -117,7 +117,7 @@ jobs:
117117
if [ -f $DOCKER_IMAGES_TAR ]; then
118118
docker load -i $DOCKER_IMAGES_TAR
119119
fi
120-
- uses: actions/setup-java@v4
120+
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
121121
name: Setup JDK
122122
with:
123123
distribution: "zulu"

0 commit comments

Comments
 (0)