more cleanup

This commit is contained in:
anaarmas
2020-04-27 23:59:14 +02:00
parent 2703a24e8b
commit ae26408e80
10 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: ./codeql/init
- uses: ./init
with:
config-file: ./.github/codeql/codeql-config.yml
- uses: ./codeql/finish
- uses: ./finish
+1 -1
View File
@@ -86,7 +86,7 @@ Identifying potential files for extraction:
- If it finds a subfolder that's defined as `paths-ignore`, stop traversing.
- If a file or folder is both in `paths` and `paths-ignore`, the `paths-ignore` is ignored.
Use the config-file parameter of the codeql/init action to enable the configuration file. For example:
Use the config-file parameter of the init action to enable the configuration file. For example:
```yaml
- uses: github/codeql-action/init@master
+1 -1
View File
@@ -51,6 +51,6 @@ async function run() {
await util.reportActionSucceeded('autobuild');
}
run().catch(e => {
core.setFailed("codeql/autobuild action failed: " + e);
core.setFailed("autobuild action failed: " + e);
console.log(e);
});
+1 -1
View File
@@ -133,6 +133,6 @@ async function run() {
await util.reportActionSucceeded('finish');
}
run().catch(e => {
core.setFailed("codeql/finish action failed: " + e);
core.setFailed("analyze action failed: " + e);
console.log(e);
});
+2 -2
View File
@@ -142,7 +142,7 @@ async function run() {
const goFlags = process.env['GOFLAGS'];
if (goFlags) {
core.exportVariable('GOFLAGS', goFlags);
core.warning("Passing the GOFLAGS env parameter to the codeql/init action is deprecated. Please move this to the codeql/finish action.");
core.warning("Passing the GOFLAGS env parameter to the init action is deprecated. Please move this to the analyze action.");
}
// Setup CODEQL_RAM flag (todo improve this https://github.com/github/dsp-code-scanning/issues/935)
const codeqlRam = process.env['CODEQL_RAM'] || '6500';
@@ -200,6 +200,6 @@ async function run() {
await util.reportActionSucceeded('init');
}
run().catch(e => {
core.setFailed("codeql/init action failed: " + e);
core.setFailed("init action failed: " + e);
console.log(e);
});
+1 -1
View File
@@ -25,6 +25,6 @@ async function run() {
await util.reportActionSucceeded('upload-sarif');
}
run().catch(e => {
core.setFailed("codeql/upload-sarif action failed: " + e);
core.setFailed("upload-sarif action failed: " + e);
console.log(e);
});
+1 -1
View File
@@ -53,6 +53,6 @@ async function run() {
}
run().catch(e => {
core.setFailed("codeql/autobuild action failed: " + e);
core.setFailed("autobuild action failed: " + e);
console.log(e);
});
+1 -1
View File
@@ -159,6 +159,6 @@ async function run() {
}
run().catch(e => {
core.setFailed("codeql/finish action failed: " + e);
core.setFailed("analyze action failed: " + e);
console.log(e);
});
+2 -2
View File
@@ -166,7 +166,7 @@ async function run() {
const goFlags = process.env['GOFLAGS'];
if (goFlags) {
core.exportVariable('GOFLAGS', goFlags);
core.warning("Passing the GOFLAGS env parameter to the codeql/init action is deprecated. Please move this to the codeql/finish action.");
core.warning("Passing the GOFLAGS env parameter to the init action is deprecated. Please move this to the analyze action.");
}
// Setup CODEQL_RAM flag (todo improve this https://github.com/github/dsp-code-scanning/issues/935)
@@ -235,6 +235,6 @@ async function run() {
}
run().catch(e => {
core.setFailed("codeql/init action failed: " + e);
core.setFailed("init action failed: " + e);
console.log(e);
});
+1 -1
View File
@@ -20,6 +20,6 @@ async function run() {
}
run().catch(e => {
core.setFailed("codeql/upload-sarif action failed: " + e);
core.setFailed("upload-sarif action failed: " + e);
console.log(e);
});