1+ # For most projects, this workflow file will not need changing; you simply need
2+ # to commit it to your repository.
3+ #
4+ # You may wish to alter this file to override the set of languages analyzed,
5+ # or to provide custom queries or build logic.
6+ name : " CodeQL"
7+
8+ on :
9+ push :
10+ branches : [develop]
11+ pull_request :
12+ # The branches below must be a subset of the branches above
13+ branches : [develop]
14+ schedule :
15+ - cron : ' 0 15 * * 6'
16+
17+ env :
18+ # workaround for https://github.com/cake-contrib/Cake.Recipe/issues/724
19+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
20+
21+ jobs :
22+ analyze :
23+ name : Analyze
24+ runs-on : ubuntu-latest
25+
26+ strategy :
27+ fail-fast : false
28+ matrix :
29+ # Override automatic language detection by changing the below list
30+ # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
31+ language : ['csharp']
32+ # Learn more...
33+ # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
34+
35+ steps :
36+ - name : Checkout repository
37+ uses : actions/checkout@v2.3.4
38+ with :
39+ fetch-depth : 0
40+
41+ # If this run was triggered by a pull request event, then checkout
42+ # the head of the pull request instead of the merge commit.
43+ - run : git checkout HEAD^2
44+ if : ${{ github.event_name == 'pull_request' }}
45+
46+ # Initializes the CodeQL tools for scanning.
47+ - name : Initialize CodeQL
48+ uses : github/codeql-action/init@v1
49+ with :
50+ languages : ${{ matrix.language }}
51+ # If you wish to specify custom queries, you can do so here or in a config file.
52+ # By default, queries listed here will override any specified in a config file.
53+ # Prefix the list here with "+" to use these queries and those in the config file.
54+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
55+
56+ - run : ./build.ps1
57+ shell : pwsh
58+
59+ - name : Perform CodeQL Analysis
60+ uses : github/codeql-action/analyze@v1
0 commit comments