Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
allgeo committed Apr 4, 2024
1 parent 1879390 commit a48c693
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
15 changes: 8 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export async function runSastScan(): Promise<void> {
const authToken = core.getInput('contrast-auth-token')

//Set environment variables
process.env['CONTRAST__API__URL'] = apiUrl
process.env['CONTRAST__API__API_KEY'] = apiKey
process.env['CONTRAST__API__SERVICE_KEY'] = serviceKey
process.env['CONTRAST__API__ORGANIZATION'] = organization
process.env['CONTRAST__AUTH__TOKEN'] = authToken
process.env['CONTRAST__API__USER_NAME'] = userName
process.env['CONTRAST_RESOURCE_GROUP'] = resourceGroup
// process.env['CONTRAST__API__URL'] = apiUrl
// process.env['CONTRAST__API__API_KEY'] = apiKey
// process.env['CONTRAST__API__SERVICE_KEY'] = serviceKey
// process.env['CONTRAST__API__ORGANIZATION'] = organization
// process.env['CONTRAST__AUTH__TOKEN'] = authToken
// process.env['CONTRAST__API__USER_NAME'] = userName
// process.env['CONTRAST_RESOURCE_GROUP'] = resourceGroup

//Download the scanner from JFrog Artifactory
core.info('Downloading SAST scanner...')
Expand All @@ -38,6 +38,7 @@ export async function runSastScan(): Promise<void> {
//Run the SAST scan
core.info('Running SAST scan...')
const scanCommand = `java -jar scanner.jar ${fileToBeScanned} --project-name ${projectName} --label ${userName} -r "${resourceGroup}"`

const { stdout, stderr } = await execAsync(scanCommand)

if (stderr) {
Expand Down
14 changes: 0 additions & 14 deletions src/wait.ts

This file was deleted.

0 comments on commit a48c693

Please sign in to comment.