Skip to content

Commit 318909e

Browse files
author
Louis Varin
authored
Merge pull request #420 from BitGo/advanced-security
chore: enable github advanced security workflow
2 parents 6816ae5 + 20ce508 commit 318909e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/codeql.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: 'Advanced Security CodeQL Scan'
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
branches: ['master']
8+
schedule:
9+
- cron: '43 11 * * 5'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
# Runner size impacts CodeQL analysis time. To learn more, please see:
15+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
16+
# - https://gh.io/supported-runners-and-hardware-resources
17+
# - https://gh.io/using-larger-runners
18+
# Consider using larger runners for possible analysis time improvements.
19+
runs-on: 'ubuntu-latest'
20+
timeout-minutes: 30
21+
permissions:
22+
security-events: write
23+
actions: read
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
language: ['javascript-typescript']
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
continue-on-error: true
35+
with:
36+
ref: ${{ github.sha }}
37+
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v3
41+
continue-on-error: true
42+
with:
43+
languages: ${{ matrix.language }}
44+
45+
# For more details on CodeQL's query packs, refer to:
46+
# 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+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
50+
- name: Autobuild
51+
uses: github/codeql-action/autobuild@v3
52+
continue-on-error: true
53+
54+
- name: Perform CodeQL Analysis
55+
uses: github/codeql-action/analyze@v3
56+
continue-on-error: true
57+
with:
58+
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)