Skip to content

Commit

Permalink
ci(codeql): updated configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Dec 22, 2023
1 parent b6aa539 commit 9ffa3e8
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CodeQL

on:
push:
branches:
- main
- latest
pull_request:
branches:
- main
- latest
schedule:
# "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1
- cron: "0 10 * * 1"
Expand All @@ -19,20 +15,33 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "H4ad CLI robot"
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: [javascript, typescript]
languages: ${{ matrix.language }}

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

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

0 comments on commit 9ffa3e8

Please sign in to comment.