-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (50 loc) · 1.72 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (50 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath)
#
# CodeQL Security Analysis. This repo carries real JavaScript/TypeScript
# source (cartridge adapters, tooling) alongside its Idris2/Zig/Rust core, so
# the javascript-typescript matrix has genuine source to analyse (unlike a
# pure-Elixir sibling repo, where the same matrix found nothing and had to be
# repointed at `actions`). Also runs `actions`, matching the canonical
# two-language matrix in hyperpolymath/standards — every repo's workflow
# surface is analysable regardless of its application-language mix.
name: CodeQL Security Analysis
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: actions
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Initialize CodeQL
uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v3.28.1
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v3.28.1
with:
category: "/language:${{ matrix.language }}"