66
77env :
88 IMAGE_NAME : preflight
9-
9+
1010jobs :
1111 build-main :
12+ # TODO: Set explicit permissions for this job.
13+ # zizmor: ignore[excessive-permissions]
1214 name : Build and push main snapshot images
1315 strategy :
1416 matrix :
1517 architecture : [amd64,ppc64le,arm64,s390x]
1618 platform : [linux]
1719 runs-on : ubuntu-latest
1820 steps :
19- - uses : actions/checkout@v4
21+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+ with :
23+ persist-credentials : false
24+
2025 - name : Fetch latest release version
21- uses : reloc8/action-latest-release-version@1.0.0
26+ uses : reloc8/action-latest-release-version@b8d6337f30390558e7874a044d6a3c1314314bab # 1.0.0
2227 id : fetch-latest-release
23- - name : Set Env Tags
24- run : echo RELEASE_TAG=${{ steps.fetch-latest-release.outputs.latest-release }} >> $GITHUB_ENV
25- - name : set short sha
26- run : echo SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV
28+
29+ - name : Set release tag and short SHA
30+ run : |
31+ echo RELEASE_TAG=${RELEASE_TAG} >> $GITHUB_ENV
32+ echo SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV
33+ env :
34+ RELEASE_TAG : ${{ steps.fetch-latest-release.outputs.latest-release }}
2735
2836 - name : Set up QEMU
29- uses : docker/setup-qemu-action@v3
37+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
3038
3139 - name : Build Image
3240 id : build-image
33- uses : redhat-actions/buildah-build@v2
41+ uses : redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
3442 with :
3543 image : ${{ secrets.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}
3644 tags : ${{ env.SHA_SHORT }}-${{ matrix.platform }}-${{ matrix.architecture }}
4452
4553 - name : Push Image
4654 id : push-image
47- uses : redhat-actions/push-to-registry@v2
55+ uses : redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
4856 with :
4957 image : ${{ env.IMAGE_NAME }}
5058 tags : ${{ env.SHA_SHORT }}-${{ matrix.platform }}-${{ matrix.architecture }}
@@ -53,22 +61,28 @@ jobs:
5361 password : ${{ secrets.REGISTRY_PASSWORD }}
5462
5563 - name : Print image url
56- run : echo "Image pushed to ${{ steps.push-image.outputs.registry-paths }}"
64+ run : echo "Image pushed to ${REGISTRY_PATHS}"
65+ env :
66+ REGISTRY_PATHS : ${{ steps.push-image.outputs.registry-paths }}
5767
5868 outputs :
5969 imageName : ${{ env.IMAGE_NAME }}
6070 imageVersion : ${{ env.SHA_SHORT }}
6171
6272 build-coverage :
73+ # TODO: Set explicit permissions for this job.
74+ # zizmor: ignore[excessive-permissions]
6375 runs-on : ubuntu-latest
6476 steps :
65- - uses : actions/checkout@v4
77+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
78+ with :
79+ persist-credentials : false
6680
6781 - name : Install system deps
6882 run : ' sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev'
6983
7084 - name : Set up Go
71- uses : actions/setup-go@v5
85+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
7286 with :
7387 go-version-file : go.mod
7488
@@ -85,12 +99,14 @@ jobs:
8599 run : make cover
86100
87101 - name : Coveralls
88- uses : coverallsapp/github-action@v2
102+ uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
89103 with :
90104 github-token : ${{ secrets.GITHUB_TOKEN }}
91105 file : coverage.out
92106
93107 build-multiarch :
108+ # TODO: Set explicit permissions for this job.
109+ # zizmor: ignore[excessive-permissions]
94110 needs : build-main
95111 uses : ./.github/workflows/build-multiarch.yml
96112 with :
0 commit comments