22 push :
33 branches :
44 - main
5- paths :
6- - " **.go "
5+ paths-ignore :
6+ - " **/*.md "
77 pull_request :
8- paths :
9- - " **.go "
8+ paths-ignore :
9+ - " **/*.md "
1010
1111permissions :
1212 # deployments permission to deploy GitHub pages website
@@ -22,12 +22,12 @@ jobs:
2222 runs-on : ubuntu-latest
2323 steps :
2424 - name : Fetch Repository
25- uses : actions/checkout@v5
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626 with :
2727 fetch-depth : 0 # to be able to retrieve the last commit in main
2828
2929 - name : Install Go
30- uses : actions/setup-go@v6
30+ uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3131 with :
3232 # NOTE: Keep this in sync with the version from go.mod
3333 go-version : " 1.25.x"
6767
6868 # NOTE: Benchmarks could change with different CPU types
6969 - name : Get GitHub Runner System Information
70- uses : kenchan0130/actions-system-info@v1.4.0
70+ uses : kenchan0130/actions-system-info@59699597e84e80085a750998045983daa49274c4 # v1.4.0
7171 id : system-info
7272
7373 - name : Get Main branch SHA
@@ -78,14 +78,14 @@ jobs:
7878
7979 - name : Get Benchmark Results from main branch
8080 id : cache
81- uses : actions/cache/restore@v4
81+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8282 with :
8383 path : ./cache
8484 key : ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-${{ steps.system-info.outputs.cpu-model }}-benchmark
8585
8686 # This will only run if we have Benchmark Results from main branch
8787 - name : Compare PR Benchmark Results with main branch
88- uses : benchmark-action/github-action-benchmark@v1.20.7
88+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
8989 if : steps.cache.outputs.cache-hit == 'true'
9090 with :
9191 tool : ' go'
@@ -101,7 +101,7 @@ jobs:
101101 alert-threshold : " 150%"
102102
103103 - name : Store Benchmark Results for main branch
104- uses : benchmark-action/github-action-benchmark@v1.20.7
104+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
105105 if : ${{ github.ref_name == 'main' }}
106106 with :
107107 tool : ' go'
@@ -115,7 +115,7 @@ jobs:
115115 alert-threshold : " 150%"
116116
117117 - name : Publish Benchmark Results to GitHub Pages
118- uses : benchmark-action/github-action-benchmark@v1.20.7
118+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
119119 if : ${{ github.ref_name == 'main' }}
120120 with :
121121 tool : ' go'
@@ -133,7 +133,7 @@ jobs:
133133 auto-push : false
134134
135135 - name : Update Benchmark Results cache
136- uses : actions/cache/save@v4
136+ uses : actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
137137 if : ${{ github.ref_name == 'main' }}
138138 with :
139139 path : ./cache
0 commit comments