mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-11 10:42:22 +02:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: CodeQL
|
|
|
|
# Advanced setup so CodeQL also runs on pull requests (including from forks),
|
|
# surfacing findings before merge instead of only after a change lands on dev.
|
|
on:
|
|
push:
|
|
branches: [dev, main]
|
|
pull_request:
|
|
branches: [dev]
|
|
schedule:
|
|
- cron: "17 3 * * 1"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
actions: read
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [actions, javascript-typescript, python]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: none
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|