Replace mutable tag references with immutable commit SHAs in codeql-analysis.yml and check-dist.yml to prevent supply chain attacks. Actions pinned: - actions/checkout@v6.0.2 - github/codeql-action/init@v4 - github/codeql-action/autobuild@v4 - github/codeql-action/analyze@v4 - actions/setup-node@v6.3.0 - actions/upload-artifact@v7.0.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: '31 7 * * 3'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
actions: read
|
|
checks: write
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language:
|
|
- TypeScript
|
|
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Initialize CodeQL
|
|
id: initialize
|
|
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
source-root: src
|
|
|
|
- name: Autobuild
|
|
id: autobuild
|
|
uses: github/codeql-action/autobuild@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
|
|
|
|
- name: Perform CodeQL Analysis
|
|
id: analyze
|
|
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
|