Skip to content

Commit

Permalink
add artifact name as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
julz0815 committed Nov 28, 2024
1 parent 34192b5 commit d9a11c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ inputs:
include:
description: 'Enter a case-sensitive, comma-separated list of name patterns that represent the names of the modules to scan as top-level modules. Veracode identifies these modules during prescan. The * wildcard matches zero or more characters. The ? wildcard matches exactly one character. For example, to include various module names that contain module: --include "module 1, module-*, module2.jar". The scan results show the names of the modules that Veracode identified and the modules included in the scan. This parameter does not pause, stop, or impact the performance of your pipeline.'
required: false
artifact_name:
description: 'Enter the name of the artifact to be uploaded to Github.'
required: false

runs:
using: 'node20'
Expand Down
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107341,6 +107341,9 @@ parameters['create_baseline_from'] = create_baseline_from;
const fail_build = core.getInput('fail_build', { required: false });
parameters['fail_build'] = fail_build;
//true or false
const artifact_name = core.getInput('artifact_name', { required: false });
parameters['artifact_name'] = artifact_name;
//string
function run(parameters) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
Expand Down Expand Up @@ -107402,7 +107405,7 @@ function run(parameters) {
//store output files as artifacts
const { DefaultArtifactClient } = __nccwpck_require__(32481);
const artifactClient = new DefaultArtifactClient();
const artifactName = 'Veracode Pipeline-Scan Results';
const artifactName = 'Veracode Pipeline-Scan Results - ' + parameters.artifact_name;
const files = [
parameters.json_output_file,
parameters.filtered_json_output_file,
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ const fail_build = core.getInput('fail_build', {required: false} );
parameters['fail_build'] = fail_build
//true or false

const artifact_name = core.getInput('artifact_name', {required: false} );
parameters['artifact_name'] = artifact_name
//string




Expand Down Expand Up @@ -187,7 +191,7 @@ async function run (parameters:any){
//store output files as artifacts
const { DefaultArtifactClient } = require('@actions/artifact')
const artifactClient = new DefaultArtifactClient()
const artifactName = 'Veracode Pipeline-Scan Results';
const artifactName = 'Veracode Pipeline-Scan Results - '+parameters.artifact_name;
const files = [
parameters.json_output_file,
parameters.filtered_json_output_file,
Expand Down

0 comments on commit d9a11c8

Please sign in to comment.