mirror of
https://github.com/github/codeql-action.git
synced 2026-01-03 05:00:04 +08:00
update test workflow
This commit is contained in:
16
.github/workflows/cli.yml
vendored
16
.github/workflows/cli.yml
vendored
@@ -9,10 +9,18 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Build the CLI
|
||||
- name: Build CLI
|
||||
run: npm run build-cli
|
||||
run: |
|
||||
cd packaging
|
||||
npm install
|
||||
npm run build-cli
|
||||
|
||||
# Upload an empty SARIF file
|
||||
- name: Upload with CLI
|
||||
run: node cli/code-scanning-cli.js upload --sarif-file src/testdata/empty-sarif.sarif --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_API_URL --github-auth ${{ github.token }}
|
||||
run: |
|
||||
node packaging/dist/code-scanning-cli-linux upload \
|
||||
--sarif-file src/testdata/empty-sarif.sarif \
|
||||
--repository $GITHUB_REPOSITORY \
|
||||
--commit $GITHUB_SHA \
|
||||
--ref $GITHUB_REF \
|
||||
--github-url $GITHUB_API_URL \
|
||||
--github-auth ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user