File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Code scanning - Rust"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - ' rc/*'
8+ pull_request :
9+ branches :
10+ - main
11+ - ' rc/*'
12+ paths :
13+ - ' **/*.rs'
14+ - ' **/Cargo.toml'
15+ - ' .github/codeql/codeql-config.yml'
16+ - ' .github/workflows/rust-analysis.yml'
17+ schedule :
18+ - cron : ' 0 9 * * 1'
19+
20+ env :
21+ CODEQL_ENABLE_EXPERIMENTAL_FEATURES : " true"
22+
23+ jobs :
24+ analyze :
25+ strategy :
26+ matrix :
27+ language : [ 'rust' ]
28+
29+ runs-on : ubuntu-latest
30+
31+ permissions :
32+ contents : read
33+ security-events : write
34+ pull-requests : read
35+
36+ steps :
37+ - name : Checkout repository
38+ uses : actions/checkout@v4
39+
40+ - name : Query latest nightly CodeQL bundle
41+ shell : bash
42+ id : codeql
43+ env :
44+ GITHUB_TOKEN : ${{ github.token }}
45+ run : |
46+ REPO=dsp-testing/codeql-cli-nightlies
47+ TAG=$(
48+ gh release list -R $REPO -L1 --exclude-drafts --json tagName -q ".[] | .tagName"
49+ )
50+ echo "nightly_bundle=https://github.com/$REPO/releases/download/$TAG/codeql-bundle-linux64.tar.zst" \
51+ | tee -a "$GITHUB_OUTPUT"
52+
53+ - name : Initialize CodeQL
54+ uses : github/codeql-action/init@main
55+ with :
56+ tools : ${{ steps.codeql.outputs.nightly_bundle }}
57+ languages : ${{ matrix.language }}
58+ config-file : ./.github/codeql/codeql-config.yml
59+
60+ - name : Autobuild
61+ uses : github/codeql-action/autobuild@main
62+
63+ - name : Perform CodeQL Analysis
64+ uses : github/codeql-action/analyze@main
You can’t perform that action at this time.
0 commit comments