This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
Merge pull request #2 from JupiterOne/SRE-1373-replace-codeowners #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is inherited from our internal .github repo at https://github.com/lifeomic/.github/blob/master/workflow-templates/code-scanning-2022-06-29.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` | |
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- test | |
- tests | |
- '**/test' | |
- '**/tests' | |
- '**/*.test.js' | |
- '**/*.test.ts' | |
pull_request: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- test | |
- tests | |
- '**/test' | |
- '**/tests' | |
- '**/*.test.js' | |
- '**/*.test.ts' | |
jobs: | |
analyze: | |
if: ${{ !contains(github.head_ref, 'dependabot') }} | |
name: Analyze | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
# We must fetch at least the immediate parents so that if this is | |
# a pull request then we can checkout the head. | |
fetch-depth: 2 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
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, it should be removed and replaced with custom build steps. | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |