Skip to content

Commit 6365272

Browse files
authored
Merge pull request #55 from userback/mark/add-codeql
Create initial codeql.yml
2 parents 3c99493 + e6c7f60 commit 6365272

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

.github/workflows/codeql.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "develop", master ]
17+
pull_request:
18+
branches: [ "develop" ]
19+
schedule:
20+
- cron: '0 5 * * 4'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
runs-on: ubuntu-latest
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
35+
language: [ 'javascript' ]
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v2
44+
with:
45+
languages: ${{ matrix.language }}
46+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
47+
# queries: security-extended,security-and-quality
48+
49+
- uses: actions/setup-node@v3
50+
with:
51+
node-version: 16.x
52+
cache: yarn
53+
- run: yarn --immutable
54+
- run: yarn build
55+
56+
- name: Perform CodeQL Analysis
57+
uses: github/codeql-action/analyze@v2
58+
with:
59+
category: "/language:${{matrix.language}}"

.github/workflows/main.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ jobs:
5555
with:
5656
node-version: 16.x
5757
cache: yarn
58-
- uses: docker/setup-buildx-action@v1
58+
- uses: docker/setup-buildx-action@v2
5959
- run: yarn --immutable
6060
- run: yarn build
6161
# Docker Cache using a private github container registry
62-
- uses: docker/build-push-action@v2
62+
- uses: docker/build-push-action@v4
6363
with:
6464
context: .
65+
provenance: false
6566
cache-from: type=gha
6667
cache-to: type=gha,mode=max
6768
- run: yarn test:docker

0 commit comments

Comments
 (0)