mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-10 23:34:02 +02:00
The task update_locales is using the GITHUB_TOKEN to push the changes to the update-locales branch, but this token doesn't trigger other workflows (see [1]), so we need to explicitly dispatch the required ones. [1] https://github.com/orgs/community/discussions/26970#discussioncomment-3254152
36 lines
738 B
YAML
36 lines
738 B
YAML
name: CodeQL
|
|
on: [push, pull_request, workflow_dispatch]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [javascript]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: security-and-quality
|
|
|
|
- name: Autobuild CodeQL
|
|
uses: github/codeql-action/autobuild@v4
|
|
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@v4
|