2222 build-push :
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/checkout@v3
25+ - name : Checkout
26+ uses : actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
2627 - name : Setup Kustomize
2728 uses : fluxcd/pkg/actions/kustomize@main
2829 - name : Prepare
@@ -35,32 +36,32 @@ jobs:
3536 echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
3637 echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
3738 - name : Setup QEMU
38- uses : docker/setup-qemu-action@v2
39+ uses : docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
3940 - name : Setup Docker Buildx
4041 id : buildx
41- uses : docker/setup-buildx-action@v2
42+ uses : docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
4243 - name : Login to GitHub Container Registry
43- uses : docker/login-action@v2
44+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
4445 with :
4546 registry : ghcr.io
4647 username : fluxcdbot
4748 password : ${{ secrets.GHCR_TOKEN }}
4849 - name : Login to Docker Hub
49- uses : docker/login-action@v2
50+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
5051 with :
5152 username : fluxcdbot
5253 password : ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
5354 - name : Generate images meta
5455 id : meta
55- uses : docker/metadata-action@v4
56+ uses : docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # v4.3.0
5657 with :
5758 images : |
5859 fluxcd/${{ env.CONTROLLER }}
5960 ghcr.io/fluxcd/${{ env.CONTROLLER }}
6061 tags : |
6162 type=raw,value=${{ steps.prep.outputs.VERSION }}
6263 - name : Publish images
63- uses : docker/build-push-action@v4
64+ uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0
6465 with :
6566 sbom : true
6667 provenance : true
7778 docker buildx imagetools inspect ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
7879 docker pull docker.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
7980 docker pull ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
80- - uses : sigstore/cosign-installer@v3
81+ - uses : sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v3.0.1
8182 - name : Sign images
8283 env :
8384 COSIGN_EXPERIMENTAL : 1
@@ -91,10 +92,10 @@ jobs:
9192 kustomize build ./config/crd > ./config/release/${{ env.CONTROLLER }}.crds.yaml
9293 kustomize build ./config/manager > ./config/release/${{ env.CONTROLLER }}.deployment.yaml
9394 echo '[CHANGELOG](https://github.com/fluxcd/${{ env.CONTROLLER }}/blob/main/CHANGELOG.md)' > ./config/release/notes.md
94- - uses : anchore/sbom-action/download-syft@v0
95+ - uses : anchore/sbom-action/download-syft@07978da4bdb4faa726e52dfc6b1bed63d4b56479 # v0.13.3
9596 - name : Create release and SBOM
9697 if : startsWith(github.ref, 'refs/tags/v')
97- uses : goreleaser/goreleaser-action@v4
98+ uses : goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
9899 with :
99100 version : latest
100101 args : release --release-notes=config/release/notes.md --rm-dist --skip-validate
0 commit comments