mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-11 01:51:33 -10:00
A tag is a mutable pointer: whoever controls the action's repository can move v7 to new code and every workflow here runs it on the next event, with this repository's token and on its self-hosted runners. A commit SHA cannot be moved. Each reference keeps its tag as a trailing comment, which is the form Dependabot's github-actions ecosystem (already configured) reads and updates. The composite actions pulled in by reference (attest-build-provenance, upload-pages-artifact, the Windows signing setup) already pin their own nested actions, so the repository-level "require full-length SHA" policy can be enabled once this lands. Six workflow contract tests asserted the literal tag spelling (upload-artifact@v7, setup-node@v7, attest-build-provenance@v3). They now require the pinned form "@<sha> # vN": the major version is still checked, and a reference that drifts back to a floating tag fails them.
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
# Docs/release-notes/root-Markdown changes carry no analyzable code; the
|
|
# weekly cron keeps the full scan cadence regardless.
|
|
push:
|
|
branches: ["main-v2"]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'release-notes/**'
|
|
- '*.md'
|
|
pull_request:
|
|
branches: ["main-v2"]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'release-notes/**'
|
|
- '*.md'
|
|
schedule:
|
|
- cron: "27 3 * * 1"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
packages: read
|
|
actions: read
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: go
|
|
build-mode: autobuild
|
|
- language: javascript-typescript
|
|
build-mode: none
|
|
- language: actions
|
|
build-mode: none
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|