From 7868f77005301cc8adbebba8e455dca4c08f5345 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 | 4 ++++ setup/src/main.ts | 5 +++++ 4 files changed, 32 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..5a0562f 100644 --- a/setup/dist/index.js +++ b/setup/dist/index.js @@ -6748,6 +6748,10 @@ function getToolVersion(tool) { function main() { return __awaiter(this, void 0, void 0, function* () { try { + const test = core.getMultilineInput('test'); + for (const x of test) { + core.info(x); + } // 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..ff1ab20 100644 --- a/setup/src/main.ts +++ b/setup/src/main.ts @@ -147,6 +147,11 @@ function getToolVersion(tool: string): string { */ async function main(): Promise { try { + const test = core.getMultilineInput('test'); + for ( const x of test ) { + core.info(x); + } + // 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`);