mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
Bumps the codeql-action group with 3 updates: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [github/codeql-action/upload-sarif](https://github.com/github/codeql-action). Updates `github/codeql-action/init` from 4.37.6 to 4.37.7 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](5595ccaf91...ff2f1c621b) Updates `github/codeql-action/analyze` from 4.37.6 to 4.37.7 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](5595ccaf91...ff2f1c621b) Updates `github/codeql-action/upload-sarif` from 4.37.6 to 4.37.7 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](5595ccaf91...ff2f1c621b) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.37.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql-action - dependency-name: github/codeql-action/analyze dependency-version: 4.37.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql-action - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.37.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql-action ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
78 lines
2.9 KiB
YAML
78 lines
2.9 KiB
YAML
name: CodeQL
|
|
|
|
# Static analysis (SAST) for TypeScript/JavaScript and Python sources.
|
|
# Findings upload to the GitHub Security tab as SARIF.
|
|
#
|
|
# Advisory only on first introduction — see docs/plans/2026-05-03-001-feat-automated-security-scans-plan.md.
|
|
# Promote to a required check after baseline triage (operator decision).
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths-ignore: ['**.md', 'docs/**', 'LICENSE']
|
|
push:
|
|
branches: [main]
|
|
schedule:
|
|
# Weekly Monday 06:00 UTC — catches advisories newly published against
|
|
# already-merged code without waiting for the next PR.
|
|
- cron: '0 6 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
# security-events:write is what enables SARIF upload to the Security tab.
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [javascript-typescript, python]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
# Don't leave GITHUB_TOKEN in .git/config for downstream steps to read.
|
|
persist-credentials: false
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: security-and-quality
|
|
# Exclude generated/vendored code; tune after first-run signal.
|
|
# gitnexus/vendor/ holds tree-sitter-proto sources (regenerated, not authored).
|
|
# CodeQL path filters use .gitignore-style globs and do NOT support
|
|
# brace expansion — list each generated parser file separately.
|
|
config: |
|
|
paths-ignore:
|
|
- '**/dist/**'
|
|
- '**/node_modules/**'
|
|
- 'gitnexus/vendor/**'
|
|
- 'gitnexus/src/core/parsing/**/parser.c'
|
|
- 'gitnexus/src/core/parsing/**/parser.js'
|
|
# Test fixtures are intentionally synthetic inputs (broken/unused
|
|
# code, malformed samples) used to exercise the analyzer. CodeQL
|
|
# findings here are noise, not real bugs. The second glob also
|
|
# covers fixtures nested deeper in the test tree, e.g.
|
|
# test/integration/cfg/fixtures/ (the CFG/PDG hazard inputs that
|
|
# deliberately contain use-before-init / unused-variable shapes).
|
|
- '**/test/fixtures/**'
|
|
- '**/test/**/fixtures/**'
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
|
|
with:
|
|
category: '/language:${{ matrix.language }}'
|