add test action
This commit is contained in:
parent
5b0aafadb1
commit
150e07f914
2 changed files with 40 additions and 0 deletions
18
.github/workflows/cli.yml
vendored
Normal file
18
.github/workflows/cli.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: "CodeScanning CLI"
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Build the CLI
|
||||
- name: Build CLI
|
||||
run: 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue