@@ -31,16 +31,20 @@ jobs:
3131 - language : go
3232 build-mode : manual
3333 runs-on : ${{ needs.runner-config.outputs.go-runner }}
34- is-self-hosted : ${{ needs.runner-config.outputs.go-is-self-hosted }}
3534
3635 - language : javascript-typescript
3736 build-mode : none
37+ codeql-config : |
38+ paths-ignore:
39+ - 'core/web/assets'
40+ - '**/node_modules/**'
3841
3942 - language : python
4043 build-mode : none
4144 steps :
4245 - name : Enable S3 Cache for Self-Hosted Runners
43- if : matrix.is-self-hosted == 'true'
46+ # these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
47+ if : ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
4448 uses : runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
4549
4650 - name : Checkout repository
6367 with :
6468 languages : ${{ matrix.language }}
6569 build-mode : ${{ matrix.build-mode }}
70+ config : ${{ matrix.codeql-config || '' }}
6671 # If you wish to specify custom queries, you can do so here or in a config file.
6772 # By default, queries listed here will override any specified in a config file.
6873 # Prefix the list here with "+" to use these queries and those in the config file.
9297 SH_GO_RUNNER : runs-on=${{ github.run_id }}/cpu=32/ram=64/family=c6i/spot=false/extras=s3-cache+tmpfs
9398 GH_GO_RUNNER : ubuntu24.04-8cores-32GB
9499 outputs :
95- # go codeql runner
96- go-is-self-hosted : ${{ steps.go-codeql.outputs.go-is-self-hosted }}
97100 go-runner : ${{ steps.go-codeql.outputs.go-runner }}
98101 steps :
99102 - name : Get PR Labels
@@ -110,7 +113,6 @@ jobs:
110113 run : |
111114 if [[ "$OPT_OUT" == "true" ]]; then
112115 echo "Opt-out is true for current run. Using gh-hosted runner for Go codeql."
113- echo "go-is-self-hosted=false" | tee -a $GITHUB_OUTPUT
114116 echo "go-runner=${GH_GO_RUNNER}" | tee -a $GITHUB_OUTPUT
115117 exit 0
116118 fi
0 commit comments