Skip to content

Commit

Permalink
Add static security scanning with CodeQL (SAST) (#954)
Browse files Browse the repository at this point in the history
Enables weekly CodeQL scans in addition to scans on pull requests.
  • Loading branch information
faf0-addepar committed Jun 24, 2022
1 parent 285cd08 commit cdfaa3a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
@@ -0,0 +1,41 @@
name: "Static security scanning"
on:
push:
branches: [main, master]
pull_request:
types: [opened, synchronize, reopened]
branches: [main, master]
paths:
- '**.js'
schedule:
# Timezone: UTC
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 0 * * 0'
jobs:
run:
name: CodeQL
runs-on: ubuntu-latest
permissions:
# required for all workflows:
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2

0 comments on commit cdfaa3a

Please sign in to comment.