Skip to content

Commit d177eb1

Browse files
🏗✨:add CodeQL workflow
Resolves: #190 Signed-off-by: Derek Lewis <[email protected]>
1 parent 0bebcf6 commit d177eb1

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
uses: actions/[email protected]
33+
with:
34+
node-version-file: '.nvmrc'
35+
36+
- name: Setup Ruby, JRuby and TruffleRuby
37+
uses: ruby/[email protected]
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 }}'

0 commit comments

Comments
 (0)