mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
33 lines
714 B
YAML
33 lines
714 B
YAML
name: "CodeQL action"
|
|
|
|
on: push
|
|
|
|
env:
|
|
CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-22.04"]
|
|
tools: ["latest"]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Initialize CodeQL
|
|
uses: ./init
|
|
id: init
|
|
with:
|
|
languages: javascript
|
|
tools: ${{ matrix.tools }}
|
|
# confirm steps.init.outputs.codeql-path points to the codeql binary
|
|
- name: Print CodeQL Version
|
|
run: ${{steps.init.outputs.codeql-path}} version --format=json
|
|
- name: Perform CodeQL Analysis
|
|
uses: ./analyze
|