diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..5538cb08 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: CodeQL + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "0 8 * * 1" + +permissions: + security-events: write + contents: read + actions: read + +jobs: + analyze: + name: Analyze + runs-on: blacksmith-4vcpu-ubuntu-2404 + + strategy: + fail-fast: false + matrix: + language: + - javascript-typescript + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml new file mode 100644 index 00000000..20b69f2f --- /dev/null +++ b/.github/workflows/osv-scanner.yml @@ -0,0 +1,26 @@ +name: OSV-Scanner + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "0 8 * * 1" + +permissions: + security-events: write + contents: read + actions: read + +jobs: + osv-scan: + name: OSV Vulnerability Scan + uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.3.3 + with: + fail-on-vuln: false + scan-args: |- + --recursive + ./