@@ -13,14 +13,14 @@ jobs:
1313 release-version : ${{ steps.semantic.outputs.release-version }}
1414 new-release-published : ${{ steps.semantic.outputs.new-release-published }}
1515 steps :
16- - uses : actions/checkout@v2
17- - uses : codfish/semantic-release-action@v1
16+ - uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
17+ - uses : codfish/semantic-release-action@cbd853afe12037afb1306caca9d6b1ab6a58cf2a # v1.10.0
1818 id : semantic
1919 env :
2020 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2121 - name : Retry on failure of build
2222 if : failure()
23- uses : mvasigh/dispatch-action@main
23+ uses : mvasigh/dispatch-action@1b879f3be874042f9fa3e1e41e3fcc1580b2bbd9 # main
2424 with :
2525 token : ${{ secrets.GITHUB_TOKEN }}
2626 repo : apm-hub
@@ -30,12 +30,12 @@ jobs:
3030 runs-on : ubuntu-latest
3131 needs : semantic-release
3232 steps :
33- - uses : actions/checkout@v2
33+ - uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
3434 - name : Install Go
35- uses : actions/setup-go@v2
35+ uses : actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
3636 with :
3737 go-version : v1.20.x
38- - uses : actions/cache@v2
38+ - uses : actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
3939 with :
4040 path : |
4141 ~/go/pkg/mod
4848 env :
4949 VERSION : v${{ needs.semantic-release.outputs.release-version }}
5050 - name : Upload binaries to release
51- uses : svenstaro/upload-release-action@v2
51+ uses : svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df # v2
5252 with :
5353 repo_token : ${{ secrets.GITHUB_TOKEN }}
5454 file : ./.release/*
@@ -59,14 +59,14 @@ jobs:
5959 needs : semantic-release
6060 runs-on : ubuntu-latest
6161 steps :
62- - uses : actions/checkout@v3
62+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
6363 - name : Set version
6464 # Always use git tags as semantic release can fail due to rate limit
6565 run : |
6666 git fetch --prune --unshallow
6767 echo "RELEASE_VERSION=$(git describe --abbrev=0 --tags | sed -e 's/^v//')" >> $GITHUB_ENV
6868 - name : Publish to Registry
69- uses : elgohr/Publish-Docker-Github-Action@v5
69+ uses : elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
7070 with :
7171 name : flanksource/apm-hub
7272 username : ${{ secrets.DOCKER_USERNAME }}
@@ -78,28 +78,28 @@ jobs:
7878 runs-on : ubuntu-latest
7979 needs : semantic-release
8080 steps :
81- - uses : actions/checkout@v3
81+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
8282 - name : Set version
8383 # Always use git tags as semantic release can fail due to rate limit
8484 run : |
8585 git fetch --prune --unshallow
8686 echo "RELEASE_VERSION=$(git describe --abbrev=0 --tags | sed -e 's/^v//')" >> $GITHUB_ENV
8787 - name : Update image tags
88- uses : mikefarah/yq@master
88+ uses : mikefarah/yq@1dee08aa38504dc16ec6528d833024129ba67090 # master
8989 with :
9090 cmd : |
9191 yq -i e '.version = "${{ env.RELEASE_VERSION }}"' chart/Chart.yaml
9292 yq -i e '.appVersion = "${{ env.RELEASE_VERSION }}"' chart/Chart.yaml
9393 yq -i e '.image.tag = "v${{ env.RELEASE_VERSION }}"' chart/values.yaml
9494 - name : Set up Helm
95- uses : azure/setup-helm@v1
95+ uses : azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1.1
9696 with :
9797 version : v3.8.0
9898 - name : Package Helm chart
9999 run : |
100100 helm package ./chart
101101 - name : Clone charts repo
102- uses : actions/checkout@v3
102+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
103103 with :
104104 repository : " ${{ github.repository_owner }}/charts"
105105 path : charts
@@ -110,7 +110,7 @@ jobs:
110110 cp ../apm-hub-*.tgz ./
111111 helm repo index --merge index.yaml .
112112 - name : Push changes to chart repo
113- uses : stefanzweifel/git-auto-commit-action@v4
113+ uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
114114 with :
115115 commit_message : " Release ${{env.RELEASE_VERSION }} of ${{ github.repository }}"
116116 branch : gh-pages
0 commit comments