Skip to content

Commit

Permalink
ci: refactor CodeQL workflow to be a bit more readable and simple
Browse files Browse the repository at this point in the history
  • Loading branch information
SpraxDev committed Aug 28, 2024
1 parent a6faa7b commit 68a8b4a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,29 @@ on:
pull_request:
branches: [ "full-recode", "main" ]
schedule:
- cron: '17 12 * * 3'
- cron: "17 12 * * 3"

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
languages: javascript-typescript
build-mode: none
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: security-extended,security-and-quality

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

0 comments on commit 68a8b4a

Please sign in to comment.