Skip to content

Commit

Permalink
Create codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
theslash84 authored Apr 12, 2024
1 parent 4894ce6 commit 6618a43
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 0' # Run once a week

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest # Specify the runner. Ubuntu is generally used for Node.js projects

permissions:
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript'] # Only JavaScript is specified here

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Specify the Node.js version you are using

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

- name: Install dependencies
run: npm install # Installs Node.js project dependencies

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 6618a43

Please sign in to comment.