Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d585340
Provide a better error message when language is not recognised
robertbrignull Aug 6, 2020
5b35de6
remove CODEQL_ACTION_DATABASE_DIR
robertbrignull Aug 7, 2020
e5ad069
remove CODEQL_ACTION_ANALYSIS_KEY
robertbrignull Aug 7, 2020
396f716
remove CODEQL_ACTION_TRACED_LANGUAGES and CODEQL_ACTION_SCANNED_LANGU…
robertbrignull Aug 7, 2020
a0660c8
remove should_abort method
robertbrignull Aug 7, 2020
6575405
add tests
robertbrignull Aug 6, 2020
d5c453c
mock API request in test
robertbrignull Aug 7, 2020
de0b590
remove direct dependency on @actions/io
robertbrignull Aug 7, 2020
6e18b27
Merge pull request #137 from github/invalid_language
robertbrignull Aug 10, 2020
97eafbc
Store the default CodeQL bundle version in a JSON file.
chrisgavin Aug 10, 2020
eb4eda5
Merge branch 'main' into remove_some_shared_env
robertbrignull Aug 10, 2020
d5693a7
Merge pull request #140 from github/remove_some_shared_env
robertbrignull Aug 10, 2020
0fdcc52
Merge branch 'main' into actions_io
robertbrignull Aug 10, 2020
7c2a7b2
Merge remote-tracking branch 'origin/main' into actions_io
robertbrignull Aug 10, 2020
bcf676e
Merge pull request #141 from github/actions_io
robertbrignull Aug 10, 2020
6d7a135
Add a CLI interface to the upload-sarif action
robertbrignull Aug 11, 2020
34b3722
commit node_modules and generated files
robertbrignull Aug 11, 2020
cf08f5a
remove unused arguments
robertbrignull Aug 11, 2020
9c5f764
Merge branch 'main' into chrisgavin/default-bundle-version-json
chrisgavin Aug 11, 2020
5b0aafa
address comments
robertbrignull Aug 12, 2020
150e07f
add test action
robertbrignull Aug 12, 2020
4b56177
Re-throw errors
robertbrignull Aug 12, 2020
2828c43
fix file location
robertbrignull Aug 12, 2020
2527130
Merge pull request #147 from github/upload_cli
robertbrignull Aug 13, 2020
73c73ba
Merge branch 'main' into chrisgavin/default-bundle-version-json
chrisgavin Aug 14, 2020
e9efcf1
Merge pull request #145 from github/chrisgavin/default-bundle-version…
chrisgavin Aug 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 18 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
TEST_MODE: true
- run: |
cd "$CODEQL_ACTION_DATABASE_DIR"
cd "$RUNNER_TEMP/codeql_databases"
# List all directories as there will be precisely one directory per database
# but there may be other files in this directory such as query suites.
if [ "$(ls -d */ | wc -l)" != 6 ] || \
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/cli/

24 changes: 22 additions & 2 deletions lib/api-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/api-client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions lib/autobuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/autobuild.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions lib/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions lib/codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading