Skip to content

Commit

Permalink
Create codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
norwd authored Nov 26, 2024
1 parent 0c94c97 commit f3e716c
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---

name: "CodeQL Advanced"
run-name: "CodeQL Advanced"

on:
push:
branches:
- 'main'

pull_request:
branches:
- 'main'

schedule:
- cron: '35 18 * * 0'
- cron: '17 22 * * 5'

jobs:
analyze:
name: "Analyze (${{ matrix.language }})"
runs-on: ubuntu-latest

permissions:
security-events: write
packages: read
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language:
- 'javascript-typescript'

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Initialize CodeQL"
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: "Perform CodeQL Analysis"
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"

dependency-scan:
name: Dependency Scan
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Scan for dependencies"
uses: github/dependabot-action@v2
with:
sub-directory: "/"
open-pull-requests-limit: 5
package-ecosystem: "github-actions"
directory: "/"

secret-scan:
name: "Secret Scan"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Scan for secrets"
uses: github/secret-scanning@v2

0 comments on commit f3e716c

Please sign in to comment.