Skip to content

Commit

Permalink
mkpr
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Nov 21, 2020
1 parent 2321ad3 commit 7a99418
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
name: CodeQL
'on':
name: "CodeQL"

on:
push:
branches:
- master
branches: [master]
pull_request:
branches:
- master
schedule:
- cron: 0 7 * * 0
branches: [master]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language:
- javascript
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: '${{ github.event_name == ''pull_request'' }}'
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: '${{ matrix.language }}'
- uses: actions/setup-node@v1
with:
node-version: 14.15.1
- run: npm install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- uses: actions/setup-node@v1
with:
node-version: 14.15.1
- run: npm install

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 7a99418

Please sign in to comment.