Skip to content

Commit

Permalink
test releases/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
allgeo committed Apr 8, 2024
1 parent 9b87111 commit 782ac62
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/contrast-sast-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ jobs:
name: sast-artifacts
path: |
sast-report.zip
9 changes: 5 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import archiver from 'archiver'
const execAsync = promisify(exec)

//zip files
async function zipFiles(outputFilename: string, files: string[]): Promise<void> {
async function zipFiles(
outputFilename: string,
files: string[]
): Promise<void> {
return new Promise((resolve, reject) => {
const output = fs.createWriteStream(outputFilename)
const archive = archiver('zip', {
Expand Down Expand Up @@ -76,10 +79,10 @@ export async function runSastScan(): Promise<void> {
}
core.info(`SAST scan completed successfully:\n${stdout}`)

//list all the files created by scanner
const files = fs.readdirSync('.');
core.info('Files created:');
files.forEach(file => core.info(file));
//list all the files created by scanner
const files = fs.readdirSync('.')
core.info('Files created:')
files.forEach(file => core.info(file))

// Try saving scan results to a csv
const resultsFilePath = './sast-results.csv'
Expand Down

0 comments on commit 782ac62

Please sign in to comment.