Skip to content

Commit

Permalink
feat(COD-2102): Add an option to use CAA data
Browse files Browse the repository at this point in the history
  • Loading branch information
linpengzhang committed Oct 31, 2023
1 parent 9ff170d commit d052ce1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ inputs:
description: 'Set to true to enable automated pull-requests for fix suggestions'
required: false
default: false
dynamic:
description: 'Set to true to integrate SCA results with dynamic data, such as package activity'
required: false
default: false
outputs:
old-completed:
description: 'If running a target called old, whether the analysis for this was completed'
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { compareResults, createPRs, printResults } from './tool'
import {
autofix,
dynamic,
callCommand,
callLaceworkCli,
debug,
Expand Down Expand Up @@ -67,6 +68,9 @@ async function runAnalysis() {
if (autofix()) {
args.push('--fix-suggestions')
}
if (dynamic()) {
args.push('--dynamic')
}
await callLaceworkCli(...args)
// make a copy of the sarif file
args = [scaSarifReport, scaReport]
Expand Down
4 changes: 4 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export function autofix() {
return getBooleanInput('autofix')
}

export function dynamic() {
return getBooleanInput('dynamic')
}

export function getRunUrl(): string {
let result = getRequiredEnvVariable('GITHUB_SERVER_URL')
result += '/'
Expand Down

0 comments on commit d052ce1

Please sign in to comment.