44 lines
1012 B
YAML
44 lines
1012 B
YAML
name: "CodeQL and OSSAR"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "38 17 * * */3"
|
|
- cron: '36 21 * * 2'
|
|
|
|
jobs:
|
|
OSSAR-Scan:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
- name: Run OSSAR
|
|
uses: github/ossar-action@v1
|
|
id: ossar
|
|
- name: Upload OSSAR results
|
|
uses: github/codeql-action/upload-sarif@v1
|
|
with:
|
|
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
|
|
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ "javascript" ]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v1
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1 |