File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # $schema: https://json.schemastore.org/github-workflow
2+ name : ' CodeQL'
3+
4+ on :
5+ push :
6+ branches : ['main']
7+ pull_request :
8+ branches : ['main']
9+ schedule :
10+ # "At 10:00 UTC on Monday" https://time.is/UTC#time_difference
11+ - cron : ' 0 10 * * 1' # https://crontab.guru/#0_10_*_*_1
12+
13+ jobs :
14+ analyze :
15+ name : Analyze
16+ runs-on : ubuntu-latest
17+ permissions :
18+ actions : read
19+ contents : read
20+ security-events : write
21+
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ language : ['javascript', 'ruby']
26+
27+ steps :
28+ - name : Checkout repository
29+ uses : actions/checkout@v3
30+
31+ - name : Setup Node.js environment
32+ 33+ with :
34+ node-version-file : ' .nvmrc'
35+
36+ - name : Setup Ruby, JRuby and TruffleRuby
37+ 38+ with :
39+ # Engine and version to use, see the syntax in the README. Reads from .ruby-version or .tool-versions if unset.
40+ ruby-version : ' .ruby-version'
41+ bundler-cache : true
42+ # The working directory to use for resolving paths for .ruby-version, .tool-versions and Gemfile.lock.
43+ working-directory : ' ./'
44+
45+ - name : Initialize CodeQL
46+ uses : github/codeql-action/init@v2
47+ with :
48+ languages : ' ${{ matrix.language }}'
49+
50+ - name : Perform CodeQL Analysis
51+ uses : github/codeql-action/analyze@v2
52+ with :
53+ category : ' /language:${{ matrix.language }}'
You can’t perform that action at this time.
0 commit comments