Skip to content

Commit

Permalink
chore: Some internal testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Sep 25, 2023
1 parent 63ad4ea commit 7868f77
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sast-scan/action.yml
Original file line number Diff line number Diff line change
@@ -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'

3 changes: 3 additions & 0 deletions setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions setup/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
5 changes: 5 additions & 0 deletions setup/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function getToolVersion(tool: string): string {
*/
async function main(): Promise<void> {
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`);
Expand Down

0 comments on commit 7868f77

Please sign in to comment.