From eeeae6787df292b101fa4ff010b0bf8050de3094 Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:33:29 +0200 Subject: [PATCH] chore: Some internal testing --- sast-scan/action.yml | 20 ++++++++++++++++++++ setup/action.yml | 3 +++ setup/dist/index.js | 5 +++++ setup/src/main.ts | 6 ++++++ 4 files changed, 34 insertions(+) create mode 100644 sast-scan/action.yml diff --git a/sast-scan/action.yml b/sast-scan/action.yml new file mode 100644 index 0000000..8f77d97 --- /dev/null +++ b/sast-scan/action.yml @@ -0,0 +1,20 @@ +name: 'Perform SAST scan' +description: 'Perform a SAST scan on FoD or ScanCentral SAST' +author: 'Fortify' +runs: + using: composite + steps: + - uses: fortify-ps/github-action/setup@main + with: + export-path: false + fcli: dev_develop + - uses: fortify-ps/github-action/package@main + - if: env.FOD_URL + run: | + ${FCLI_CMD} fod session login "${FOD_LOGIN_OPTS[@]}" + shell: bash + +branding: + icon: 'shield' + color: 'blue' + diff --git a/setup/action.yml b/setup/action.yml index 1ef54a4..8064fc1 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -22,6 +22,9 @@ inputs: description: 'The FortifyVulnerabilityExporter version to install. Allowed values: skip (default value, do not install), latest, or specific version number.' default: 'skip' required: false + test: + description: 'test' + required: false runs: using: node20 main: 'dist/index.js' diff --git a/setup/dist/index.js b/setup/dist/index.js index fadddaf..87500ae 100644 --- a/setup/dist/index.js +++ b/setup/dist/index.js @@ -6748,6 +6748,11 @@ function getToolVersion(tool) { function main() { return __awaiter(this, void 0, void 0, function* () { try { + const testMultiline = core.getMultilineInput('test'); + for (const line of testMultiline) { + core.info("line: " + line); + } + core.info("test: " + core.getInput('test')); // Install fixed fcli version for internal action use by this action only. const internalFcliPath = yield installIfNotCached('', 'fcli', INTERNAL_FCLI_VERSION, core.debug); const internalFcliCmd = core.toPlatformPath(`${internalFcliPath}/bin/fcli`); diff --git a/setup/src/main.ts b/setup/src/main.ts index 9cdc0bc..7ac1243 100644 --- a/setup/src/main.ts +++ b/setup/src/main.ts @@ -147,6 +147,12 @@ function getToolVersion(tool: string): string { */ async function main(): Promise { try { + const testMultiline = core.getMultilineInput('test'); + for ( const line of testMultiline ) { + core.info("line: "+line); + } + core.info("test: "+core.getInput('test')); + // Install fixed fcli version for internal action use by this action only. const internalFcliPath = await installIfNotCached('', 'fcli', INTERNAL_FCLI_VERSION, core.debug); const internalFcliCmd = core.toPlatformPath(`${internalFcliPath}/bin/fcli`);