mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 04:30:14 +08:00
27 lines
586 B
YAML
27 lines
586 B
YAML
name: "CodeQL runner"
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build runner
|
|
run: |
|
|
cd runner
|
|
npm install
|
|
npm run build-runner
|
|
|
|
- name: Upload with runner
|
|
run: |
|
|
runner/dist/codeql-runner-linux upload \
|
|
--sarif-file src/testdata/empty-sarif.sarif \
|
|
--repository $GITHUB_REPOSITORY \
|
|
--commit $GITHUB_SHA \
|
|
--ref $GITHUB_REF \
|
|
--github-url $GITHUB_SERVER_URL \
|
|
--github-auth ${{ github.token }}
|