This repository was archived by the owner on Jul 26, 2023. It is now read-only.
forked from adamwdraper/Numeral-js
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add static security scanning with CodeQL (SAST) (#3)
Enables weekly CodeQL scans in addition to scans on pull requests.
- Loading branch information
1 parent
56835fe
commit f2e74bc
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |