Skip to content

Commit

Permalink
replace old code scanning v2 with language-agnostic v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe DiMarzio committed Nov 17, 2020
1 parent 2b717b0 commit 089017f
Showing 1 changed file with 17 additions and 13 deletions.
@@ -1,7 +1,4 @@
# ATTENTION: Please set the language below before adding this workflow to a repository
#
# This workflow is inherited from our internal .github repo at
# https://github.com/lifeomic/.github/blob/master/workflow-templates/basic-code-scanning.yml
# This workflow is inherited from our internal .github repo at https://github.com/lifeomic/.github/blob/master/workflow-templates/code-scanning-v3.yml
#
# Setting up this workflow on the repository will perform a static scan for security issues using GitHub Code Scanning.
# Any findings for a repository can be found under the `Security` tab -> `Code Scanning Alerts`
Expand All @@ -10,8 +7,22 @@ name: "CodeQL"
on:
push:
branches: [master]
paths-ignore:
- test
- tests
- '**/test'
- '**/tests'
- '**/*.test.js'
- '**/*.test.ts'
pull_request:
branches: [master]
paths-ignore:
- test
- tests
- '**/test'
- '**/tests'
- '**/*.test.js'
- '**/*.test.ts'

jobs:
analyze:
Expand All @@ -20,11 +31,6 @@ jobs:

strategy:
fail-fast: false
matrix:
# PLEASE CHANGE TO THE LANGUAGE(S) USED WITHIN THE TARGET REPOSITORY
# Options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
# Use 'javascript' for typescript-based repositories
language: ['javascript']

steps:
- name: Checkout repository
Expand All @@ -43,10 +49,8 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: +security-extended
# This will run all queries at https://github.com/github/codeql/:language/ql/src/codeql-suites/:language-security-extended.qls
# config-file: ./.github/codeql/codeql-config.yml <- can be used to add a custom config file
config-file: lifeomic/.github/config-files/codeql-config.yml@master # uses our config file from the lifeomic/.github repo
queries: +security-extended # This will run all queries at https://github.com/github/codeql/:language/ql/src/codeql-suites/:language-security-extended.qls

# 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)
Expand Down

0 comments on commit 089017f

Please sign in to comment.