-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from Stassi/feature/codeql-security
feature/codeql-security
- Loading branch information
Showing
5 changed files
with
69 additions
and
18 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
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 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 |
---|---|---|
@@ -1,28 +1,79 @@ | ||
name: Security | ||
|
||
on: push | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '25 16 * * 4' | ||
|
||
jobs: | ||
security: | ||
name: Snyk | ||
runs-on: ubuntu-latest | ||
|
||
codeql: | ||
name: CodeQL | ||
permissions: | ||
packages: read | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Repository checkout | ||
uses: actions/[email protected] | ||
|
||
- continue-on-error: true | ||
- name: Node.js setup | ||
uses: actions/[email protected] | ||
with: | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
node-version: 18.20.4 | ||
|
||
- name: Dependencies installation | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm test | ||
|
||
- name: Initialization | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
languages: 'javascript-typescript' | ||
|
||
- name: Analysis | ||
uses: github/codeql-action/[email protected] | ||
|
||
- name: Results upload | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
category: codeql-analysis | ||
|
||
snyk: | ||
name: Snyk | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Repository checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Node.js setup | ||
uses: actions/[email protected] | ||
with: | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
node-version: 18.20.4 | ||
|
||
- name: Dependencies installation | ||
run: npm ci | ||
|
||
- name: Analysis | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
name: Snyk vulnerabilities scan | ||
uses: snyk/actions/[email protected] | ||
with: | ||
args: --sarif-file-output=snyk.sarif | ||
|
||
- name: SARIF upload to GitHub Code Scanning | ||
uses: github/codeql-action/[email protected].8 | ||
- name: Results upload | ||
uses: github/codeql-action/[email protected].9 | ||
with: | ||
category: snyk-analysis | ||
sarif_file: snyk.sarif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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