-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (61 loc) · 2 KB
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: "CI+CodeQL"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "44 22 * * 4"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript", "ruby"]
steps:
# Checkout the code
- name: Checkout repository
uses: actions/checkout@v4
# Setup Node.js environment
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
# Validate github workflow files
- name: validate github workflow files
uses: digitalservicebund/github-actions-linter@3b941278d52936497add0afdebbf5c6e6ee8bd5d # v0.1.13
# Cache dependencies to speed up workflows
- uses: ruby/setup-ruby@50ba3386b050ad5b97a41fcb81240cbee1d1821f # v1.188.0
with:
ruby-version: 3.3.4
bundler-cache: true
# Install dependencies
- name: Install node modules
run: npm ci
# Build the project if required
- name: Build page
run: npm run build
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@064a406de026ea27990a5b507b56911401ca2f95 # v2.18.0
with:
languages: ${{ matrix.language }}
config: |
paths-ignore:
- vendor/
- node_modules/
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@064a406de026ea27990a5b507b56911401ca2f95 # v2.18.0
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@064a406de026ea27990a5b507b56911401ca2f95 # v2.18.0
with:
category: "/language:${{matrix.language}}"