From 60d35a8eade111627f05089c399edfeeda869373 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Thu, 30 Apr 2020 15:35:52 +0200 Subject: [PATCH] Make an all-in-one action A more easy to use action that runs the 'init' step as a 'pre' script and the 'analyze' step as the 'main' script. --- action.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 000000000..3aabb8cfd --- /dev/null +++ b/action.yml @@ -0,0 +1,32 @@ +name: 'CodeQL' +description: 'CodeQL analysis' +author: 'GitHub' +inputs: + tools: + description: URL of CodeQL tools + required: false + default: https://github.com/github/codeql-action/releases/download/codeql-bundle-20200427/codeql-bundle.tar.gz + languages: + description: The languages to be analysed + required: false + token: + default: ${{ github.token }} + 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. + 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 + matrix: + default: ${{ toJson(matrix) }} +runs: + using: 'node12' + pre: './lib/setup-tracer.js' + main: './lib/finalize-db.js'