Skip to content

Commit 7253733

Browse files
Production deploy of security workflows.
1 parent 18eba9a commit 7253733

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/codeql.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Managed by Security
2+
# Documentation: https://coda.io/d/Information-Security_dDTWpZde3Uu/GitHub-Advanced-Security_suXj4#_lu8Xf
3+
# Contact us in the security slack channel for concerns
4+
name: "Security check - CodeQL"
5+
6+
on:
7+
pull_request:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- staging
12+
- main
13+
- master
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-latest
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [ 'ruby', 'javascript' ]
28+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
29+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v3
34+
35+
# Initializes the CodeQL tools for scanning.
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v2
38+
with:
39+
languages: ${{ matrix.language }}
40+
config-file: ./.github/codeql/codeql-config.yml
41+
# If you wish to specify custom queries, you can do so here or in a config file.
42+
# By default, queries listed here will override any specified in a config file.
43+
# Prefix the list here with "+" to use these queries and those in the config file.
44+
45+
# 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
46+
queries: + security-and-quality
47+
48+
49+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
50+
# If this step fails, then you should remove it and run the build manually (see below)
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@v2
53+
54+
# ℹ️ Command-line programs to run using the OS shell.
55+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
56+
57+
# If the Autobuild fails above, remove it and uncomment the following three lines.
58+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
59+
60+
# - run: |
61+
# echo "Run, Build Application using script"
62+
# ./location_of_script_within_repo/buildscript.sh
63+
64+
- name: Perform CodeQL Analysis
65+
uses: github/codeql-action/analyze@v2
66+
continue-on-error: true
67+
with:
68+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)