1919 REGISTRY : ghcr.io
2020 RELOADER_EDITION : oss
2121
22+ # Default to no GITHUB_TOKEN permissions; each job opts into the minimum it needs.
23+ permissions : {}
24+
2225jobs :
2326 qa :
24- uses : stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.163
27+ permissions :
28+ contents : read
29+ pull-requests : write # reusable workflow posts languagetool review comments
30+ uses : stakater/.github/.github/workflows/pull_request_doc_qa.yaml@3dfb835dba6b596fe32e1d0f5eadbb4a3a139a1c # v0.0.163
2531 with :
2632 MD_CONFIG : .github/md_config.json
2733 DOC_SRC : README.md
@@ -38,30 +44,30 @@ jobs:
3844 name : Build
3945 steps :
4046 - name : Check out code
41- uses : actions/checkout@v5
47+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
4248 with :
4349 ref : ${{github.event.pull_request.head.sha}}
4450 fetch-depth : 0
4551
4652 # Setting up helm binary
4753 - name : Set up Helm
48- uses : azure/setup-helm@v5
54+ uses : azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5
4955 with :
5056 version : v3.20.2
5157
5258 - name : Helm chart unit tests
53- uses : d3adb5/helm-unittest-action@v2
59+ uses : d3adb5/helm-unittest-action@850bc76597579183998069830d5fa8c3ef0ea34a # v2
5460 with :
5561 charts : deployments/kubernetes/chart/reloader
5662 helm-version : v3.20.2
5763 github-token : ${{ secrets.GITHUB_TOKEN }}
5864
5965 - name : Set up Go
60- uses : actions/setup-go@v6
66+ uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
6167 with :
6268 go-version-file : ' go.mod'
6369 check-latest : true
64- cache : true
70+ cache : false
6571
6672 - name : Create timestamp
6773 id : prep
@@ -130,10 +136,10 @@ jobs:
130136 echo "GIT_UBI_TAG=$(echo ${ubi_tag})" >> $GITHUB_OUTPUT
131137
132138 - name : Set up QEMU
133- uses : docker/setup-qemu-action@v3
139+ uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
134140
135141 - name : Set up Docker Buildx
136- uses : docker/setup-buildx-action@v3
142+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
137143
138144 - name : Generate image repository path for ghcr registry
139145 run : |
@@ -142,7 +148,7 @@ jobs:
142148 # To identify any broken changes in dockerfiles or dependencies
143149
144150 - name : Build Docker Image
145- uses : docker/build-push-action@v6
151+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
146152 with :
147153 context : .
148154 file : ${{ env.DOCKER_FILE_PATH }}
@@ -155,7 +161,6 @@ jobs:
155161 EDITION=${{ env.RELOADER_EDITION }}
156162 BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
157163
158- cache-to : type=inline
159164 platforms : linux/amd64,linux/arm,linux/arm64
160165 tags : |
161166 ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}
@@ -165,7 +170,7 @@ jobs:
165170 org.opencontainers.image.revision=${{ github.sha }}
166171
167172 - name : Build Docker UBI Image
168- uses : docker/build-push-action@v6
173+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
169174 with :
170175 context : .
171176 file : ${{ env.DOCKER_UBI_FILE_PATH }}
@@ -178,7 +183,6 @@ jobs:
178183 EDITION=${{ env.RELOADER_EDITION }}
179184 BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
180185 BUILDER_IMAGE=${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.highest_tag.outputs.tag }}
181- cache-to : type=inline
182186 platforms : linux/amd64,linux/arm64
183187 tags : |
184188 ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_UBI_TAG }}
0 commit comments