2021-11-11 19:14:41 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
name: "Njsscan Analysis"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ develop ]
|
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [ develop ]
|
|
|
|
schedule:
|
|
|
|
- cron: '0 7 * * 6'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
njsscan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Njsscan code scanning
|
|
|
|
steps:
|
|
|
|
- name: Checkout the code
|
2022-03-05 09:36:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-11-11 19:14:41 +00:00
|
|
|
- name: Scan with njsscan
|
|
|
|
id: njsscan
|
|
|
|
uses: ajinabraham/njsscan-action@master
|
|
|
|
with:
|
|
|
|
args: '--sarif --output results.sarif src || true'
|
|
|
|
- name: Upload njsscan report
|
2022-05-01 16:48:59 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v2
|
2021-11-11 19:14:41 +00:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|