Skip to content

Commit

Permalink
ci: update CodeQL workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Bonnet <[email protected]>
  • Loading branch information
MrSquaare committed Jan 20, 2024
1 parent b11f20c commit 47cfa29
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,41 @@ name: "CodeQL"

on:
push:
branches:
- main
branches: [ "main", "develop" ]
pull_request:
branches:
- main
branches: [ "main", "develop" ]
schedule:
- cron: "17 7 * * MON"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write

actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript"]
language: [ 'javascript-typescript' ]

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

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

- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Autobuild
uses: github/codeql-action/autobuild@v3

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

0 comments on commit 47cfa29

Please sign in to comment.