mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-01 13:11:11 -05:00
56bf75360a
Signed-off-by: Renovate Bot <bot@renovateapp.com>
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
pull_request:
|
|
branches: [ develop ]
|
|
schedule:
|
|
- cron: '0 7 * * 6'
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
njsscan:
|
|
runs-on: ubuntu-latest
|
|
name: Njsscan code scanning
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
- name: Scan with njsscan
|
|
id: njsscan
|
|
uses: ajinabraham/njsscan-action@d58d8b2f26322cd35a9efb8003baac517f226d81 # master
|
|
with:
|
|
args: '--sarif --output results.sarif src || true'
|
|
- name: Upload njsscan report
|
|
uses: github/codeql-action/upload-sarif@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
|
|
with:
|
|
sarif_file: results.sarif
|
|
|
|
codeql:
|
|
name: CodeQL analysis
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'javascript' ]
|
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: +security-and-quality
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|