@@ -23,41 +23,41 @@ jobs:
2323 steps :
2424 - name : Generate token
2525 id : generate_token
26- uses : tibdex/github-app-token@v2
26+ uses : tibdex/github-app-token@0af3325639c0a60612b2eeaf010f0f88e468e800 # v2.1.0
2727 with :
2828 app_id : ${{ secrets.OCMBOT_APP_ID }}
2929 private_key : ${{ secrets.OCMBOT_PRIV_KEY }}
3030 - name : Checkout
31- uses : actions/checkout@v4
31+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232 with :
3333 token : ${{ steps.generate_token.outputs.token }}
3434 - name : Set up QEMU
35- uses : docker/setup-qemu-action@v3
35+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
3636 - name : Set up Docker Buildx
37- uses : docker/setup-buildx-action@v3
37+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
3838 - name : Docker Login
39- uses : docker/login-action@v3
39+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
4040 with :
4141 registry : ghcr.io
4242 username : ${{ github.actor }}
4343 password : ${{ secrets.GITHUB_TOKEN }}
4444 - name : Extract metadata (tags, labels) for Docker
4545 id : meta
46- uses : docker/metadata-action@v5
46+ uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
4747 with :
4848 images : |
4949 ghcr.io/${{ github.repository }}
5050 - name : Go Build Cache for Docker
51- uses : actions/cache@v4
51+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5252 with :
5353 path : go-build-cache
5454 key : ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
5555 - name : inject go-build-cache into docker
56- uses : reproducible-containers/buildkit-cache-dance@v3
56+ uses : reproducible-containers/buildkit-cache-dance@9380a95413d28427de1842dc121f44b9e8a3f406 # v3.1.2
5757 with :
5858 cache-source : go-build-cache
5959 - name : Build and push
60- uses : docker/build-push-action@v6
60+ uses : docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
6161 with :
6262 context : .
6363 # supported platforms: https://github.com/GoogleContainerTools/distroless?tab=readme-ov-file#what-images-are-available
@@ -78,27 +78,27 @@ jobs:
7878 packages : write
7979 steps :
8080 - name : Self hosted runner post job cleanup
81- uses : TooMuch4U/actions-clean@v2.2
81+ uses : TooMuch4U/actions-clean@3f61bacac66e425c632b77a19065e4ba2f43a04e # v2.1
8282 - name : Generate token
8383 id : generate_token
84- uses : tibdex/github-app-token@v2
84+ uses : tibdex/github-app-token@0af3325639c0a60612b2eeaf010f0f88e468e800 # v2.1.0
8585 with :
8686 app_id : ${{ secrets.OCMBOT_APP_ID }}
8787 private_key : ${{ secrets.OCMBOT_PRIV_KEY }}
8888 - name : Checkout
89- uses : actions/checkout@v4
89+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9090 with :
9191 fetch-depth : 0
9292 token : ${{ steps.generate_token.outputs.token }}
9393 - name : Enable github-cli
94- uses : actions4gh/setup-gh@v1.0.2
94+ uses : actions4gh/setup-gh@44a12005484c53be5bf51bebe8c985b4be8ba8de # v1.0.2
9595 with :
9696 token : ${{ steps.generate_token.outputs.token }}
9797 - name : Move tag to latest commit
9898 run : |
9999 gh api -X PATCH -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/open-component-model/ocm/git/refs/tags/ocm-cli/latest -f "sha=${{ github.sha }}" -F "force=true"
100100 - name : Setup go
101- uses : actions/setup-go@v5
101+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
102102 with :
103103 go-version-file : ' ${{ github.workspace }}/go.mod'
104104 check-latest : false
@@ -115,7 +115,8 @@ jobs:
115115 # This is because we have huge storage requirements for our cache because of the mass of dependencies
116116 - name : Restore / Reuse Cache from central build
117117 id : cache-golang-restore
118- uses : actions/cache/restore@v4 # Only Restore, not build another cache (too big)
118+ # Only Restore, not build another cache (too big)
119+ uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
119120 with :
120121 path : |
121122 ${{ env.go_cache }}
@@ -127,7 +128,7 @@ jobs:
127128 cache_name : ocm-cli-latest-go-cache # needs to be the same key in the end as in the build step
128129
129130 - name : Goreleaser release snapshot
130- uses : goreleaser/goreleaser-action@v6
131+ uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
131132 with :
132133 distribution : goreleaser
133134 version : 2.2.0
@@ -138,7 +139,7 @@ jobs:
138139 GORELEASER_CURRENT_TAG : v0.0.0
139140 GORELEASER_PREVIOUS_TAG : v0.0.0
140141 - name : Create or update release
141- uses : ncipollo/release-action@v1
142+ uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0
142143 with :
143144 name : latest ocm-cli
144145 tag : ocm-cli/latest
@@ -158,7 +159,8 @@ jobs:
158159 # This step is actually responsible for populating our build cache for the next runs in PRs or on main.
159160 - name : Save Cache of Build (only on main)
160161 id : cache-golang-save
161- uses : actions/cache/save@v4 # Only save build cache once
162+ # Only save build cache once
163+ uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
162164 with :
163165 path : |
164166 ${{ env.go_cache }}
0 commit comments