22 push :
33 branches :
44 - main
5- paths :
6- - " **.go"
7- - " go.mod"
8- - " go.sum"
5+ paths-ignore :
6+ - " **/*.md"
97 pull_request :
10- paths :
11- - " **.go"
12- - " go.mod"
13- - " go.sum"
8+ paths-ignore :
9+ - " **/*.md"
1410
1511permissions :
1612 # deployments permission to deploy GitHub pages website
@@ -26,12 +22,12 @@ jobs:
2622 runs-on : ubuntu-latest
2723 steps :
2824 - name : Fetch Repository
29- uses : actions/checkout@v5
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3026 with :
3127 fetch-depth : 0 # to be able to retrieve the last commit in main
3228
3329 - name : Install Go
34- uses : actions/setup-go@v6
30+ uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3531 with :
3632 # NOTE: Keep this in sync with the version from go.mod
3733 go-version : " 1.25.x"
7167
7268 # NOTE: Benchmarks could change with different CPU types
7369 - name : Get GitHub Runner System Information
74- uses : kenchan0130/actions-system-info@v1.4.0
70+ uses : kenchan0130/actions-system-info@59699597e84e80085a750998045983daa49274c4 # v1.4.0
7571 id : system-info
7672
7773 - name : Get Main branch SHA
@@ -82,14 +78,14 @@ jobs:
8278
8379 - name : Get Benchmark Results from main branch
8480 id : cache
85- uses : actions/cache/restore@v4
81+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8682 with :
8783 path : ./cache
8884 key : ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-${{ steps.system-info.outputs.cpu-model }}-benchmark
8985
9086 # This will only run if we have Benchmark Results from main branch
9187 - name : Compare PR Benchmark Results with main branch
92- uses : benchmark-action/github-action-benchmark@v1.20.7
88+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
9389 if : steps.cache.outputs.cache-hit == 'true'
9490 with :
9591 tool : ' go'
@@ -105,7 +101,7 @@ jobs:
105101 alert-threshold : " 150%"
106102
107103 - name : Store Benchmark Results for main branch
108- uses : benchmark-action/github-action-benchmark@v1.20.7
104+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
109105 if : ${{ github.ref_name == 'main' }}
110106 with :
111107 tool : ' go'
@@ -119,7 +115,7 @@ jobs:
119115 alert-threshold : " 150%"
120116
121117 - name : Publish Benchmark Results to GitHub Pages
122- uses : benchmark-action/github-action-benchmark@v1.20.7
118+ uses : benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
123119 if : ${{ github.ref_name == 'main' }}
124120 with :
125121 tool : ' go'
@@ -137,7 +133,7 @@ jobs:
137133 auto-push : false
138134
139135 - name : Update Benchmark Results cache
140- uses : actions/cache/save@v4
136+ uses : actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
141137 if : ${{ github.ref_name == 'main' }}
142138 with :
143139 path : ./cache
0 commit comments