Skip to content

Commit

Permalink
add codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryndaniels committed Jun 10, 2024
1 parent 29d3783 commit 5ec3cbe
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CodeQL

on:
push:
branches: [master]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/LICENSE.txt'
- '**/CODEOWNERS'
- 'readme.*'
- '.gitignore'
pull_request:
branches: [master]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/LICENSE.txt'
- '**/CODEOWNERS'
- 'readme.*'
- '.gitignore'

jobs:
codeql:
name: Analyze
runs-on: ubuntu-22.04
permissions:
security-events: write
actions: read
contents: read
env:
language: javascript

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

- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

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

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

0 comments on commit 5ec3cbe

Please sign in to comment.