2424 os : linux
2525 steps :
2626 - name : Checkout code
27- uses : actions/checkout@v4
27+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2828
2929 - name : Fix the not-a-git-repository issue
3030 run : |
4040 run : scripts/download
4141
4242 - name : Load secrets from Vault
43- uses : rancher-eio/read-vault-secrets@main
43+ uses : rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
4444 with :
4545 secrets : |
4646 secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
5454 secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials password | PRIME_STAGING_REGISTRY_PASSWORD ;
5555
5656 - name : Publish Image - Docker
57- uses : rancher/ecm-distro-tools/actions/publish-image@master
57+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
5858 env :
5959 GOARCH : ${{ matrix.arch }}
6060 GOOS : ${{ matrix.os }}
7070 push-to-prime : false
7171
7272 - name : Publish Image - Staging
73- uses : rancher/ecm-distro-tools/actions/publish-image@master
73+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
7474 env :
7575 GOARCH : ${{ matrix.arch }}
7676 GOOS : ${{ matrix.os }}
8989 prime-password : ${{ env.PRIME_STAGING_REGISTRY_PASSWORD }}
9090
9191 - name : Publish Image - Prime
92- uses : rancher/ecm-distro-tools/actions/publish-image@master
92+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
9393 if : ${{ !contains(github.ref_name, '-rc') }}
9494 env :
9595 GOARCH : ${{ matrix.arch }}
@@ -113,7 +113,7 @@ jobs:
113113 needs : [ build-linux ]
114114 steps :
115115 - name : Checkout code
116- uses : actions/checkout@v4
116+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
117117
118118 - name : Set environment variables
119119 run : |
@@ -124,7 +124,7 @@ jobs:
124124 echo "GIT_TAG=$(echo "${{ github.ref_name }}" | sed -e 's/+/-/g')" >> "$GITHUB_ENV"
125125
126126 - name : Load secrets from Vault
127- uses : rancher-eio/read-vault-secrets@main
127+ uses : rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
128128 with :
129129 secrets : |
130130 secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
@@ -138,7 +138,7 @@ jobs:
138138 secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials password | PRIME_STAGING_REGISTRY_PASSWORD ;
139139
140140 - name : Publish Manifest - Docker
141- uses : rancher/ecm-distro-tools/actions/publish-image@master
141+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
142142 with :
143143 image : ${{ env.IMAGE }}
144144 tag : ${{ env.GIT_TAG }}
@@ -153,7 +153,7 @@ jobs:
153153 run : docker buildx imagetools inspect ${{ env.REPO }}/${{ env.IMAGE }}:${{ env.GIT_TAG }}
154154
155155 - name : Publish Manifest - Staging
156- uses : rancher/ecm-distro-tools/actions/publish-image@master
156+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
157157 with :
158158 image : ${{ env.IMAGE }}
159159 tag : ${{ env.GIT_TAG }}
@@ -170,7 +170,7 @@ jobs:
170170 run : docker buildx imagetools inspect ${{ env.PRIME_STAGING_REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:${{ env.GIT_TAG }}
171171
172172 - name : Publish Image - Prime
173- uses : rancher/ecm-distro-tools/actions/publish-image@master
173+ uses : rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
174174 if : ${{ !contains(github.ref_name, '-rc') }}
175175 with :
176176 image : " system-agent-installer-k3s"
0 commit comments