Skip to content

Commit

Permalink
Update CodeQL action to run on all commits and creates CodeQL action …
Browse files Browse the repository at this point in the history
…for js/ts files (#2470)

* Create codeql-js-analysis.yml

* Update codeql-analysis.yml
  • Loading branch information
eddynaka authored Mar 23, 2022
1 parent c0823b0 commit 9f5eae0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
name: "CodeQL"

on:
push:
# The branches below must be a subset of the branches above
branches: "**"
pull_request:
# The branches below must be a subset of the branches above
branches: "*"
branches: [ main ]
schedule:
- cron: '0 8 * * *'
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/codeql-js-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL JS"

on:
push:
branches: "**"
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '0 0 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Autobuild
uses: github/codeql-action/autobuild@v1

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

0 comments on commit 9f5eae0

Please sign in to comment.