66 go-version :
77 required : true
88 type : string
9- ref :
10- description : ' The branch to run the workflow on'
11- required : true
12- type : string
139
1410env :
1511 DD_APPSEC_WAF_TIMEOUT : 1m # Increase time WAF time budget to reduce CI flakiness
@@ -32,10 +28,16 @@ jobs:
3228 outputs :
3329 matrix : ${{ steps.matrix.outputs.matrix }}
3430 steps :
31+ - name : Restore repo cache
32+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
33+ with :
34+ path : .git
35+ key : gitdb-${{ github.repository_id }}-${{ github.sha }}
3536 - name : Checkout
3637 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3738 with :
38- ref : ${{ inputs.ref || github.ref }}
39+ ref : ${{ github.sha }}
40+ clean : false
3941
4042 - name : Compute Matrix
4143 id : matrix
@@ -202,11 +204,16 @@ jobs:
202204 ports :
203205 - 4566:4566
204206 steps :
207+ - name : Restore repo cache
208+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
209+ with :
210+ path : .git
211+ key : gitdb-${{ github.repository_id }}-${{ github.sha }}
205212 - name : Checkout
206213 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
207214 with :
208- ref : ${{ inputs.ref || github.ref }}
209- fetch-depth : $(( ${{ github.event_name == 'pull_request' && github.event.pull_request.commits || 0 }} + 1 ))
215+ ref : ${{ github.sha }}
216+ clean : false
210217
211218 - name : Setup Go and development tools
212219 uses : ./.github/actions/setup-go
@@ -274,11 +281,16 @@ jobs:
274281 - 8125:8125/udp
275282 - 8126:8126
276283 steps :
284+ - name : Restore repo cache
285+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
286+ with :
287+ path : .git
288+ key : gitdb-${{ github.repository_id }}-${{ github.sha }}
277289 - name : Checkout
278290 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
279291 with :
280- ref : ${{ inputs.ref || github.ref }}
281- fetch-depth : $(( ${{ github.event_name == 'pull_request' && github.event.pull_request.commits || 0 }} + 1 ))
292+ ref : ${{ github.sha }}
293+ clean : false
282294 - name : Setup Go and development tools
283295 uses : ./.github/actions/setup-go
284296 with :
0 commit comments