Compare commits

...

1 Commits

Author SHA1 Message Date
David Verdeguer
1e83c72db7 pre-hook simple try 2020-07-31 14:30:35 +02:00
2 changed files with 46 additions and 2 deletions

View File

@@ -21,8 +21,7 @@ jobs:
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- uses: ./init
- uses: github/codeql-action/full@pre-hook
with:
languages: javascript
config-file: ./.github/codeql/codeql-config.yml
- uses: ./analyze

45
full/action.yml Normal file
View File

@@ -0,0 +1,45 @@
name: 'CodeQL'
description: 'Setup the CodeQL tracer'
author: 'GitHub'
inputs:
tools:
description: URL of CodeQL tools
required: false
# If not specified the Action will check in several places until it finds the CodeQL tools.
languages:
description: The languages to be analysed
required: false
token:
default: ${{ github.token }}
matrix:
default: ${{ toJson(matrix) }}
config-file:
description: Path of the config file to use
required: false
check_name:
description: The name of the check run to add text to.
required: false
output:
description: The path of the directory in which to save the SARIF results
required: false
default: '../results'
upload:
description: Upload the SARIF file
required: false
default: "true"
ram:
description: Override the amount of memory in MB to be used by CodeQL. By default, almost all the memory of the machine is used.
required: false
threads:
description: The number of threads to be used by CodeQL.
required: false
default: "1"
checkout_path:
description: "The path at which the analyzed repository was checked out. Used to relativeize any absolute paths in the uploaded SARIF file."
required: false
default: ${{ github.workspace }}
runs:
using: 'node12'
pre: '../lib/setup-tracer.js'
main: '../lib/finalize-db.js'