Skip to content

Commit 739af68

Browse files
committed
chore(COD-4237): removing unused option --eval-indirect-dependencies
1 parent 8c0de50 commit 739af68

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

action.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ inputs:
1919
footer:
2020
description: 'A block of Markdown that will be appended to any PR comments posted'
2121
required: false
22-
eval-indirect-dependencies:
23-
description: 'Show vulnerabilities found in transitive dependencies'
24-
required: false
25-
default: false
2622
autofix:
2723
description: 'Set to true to enable automated pull-requests for fix suggestions'
2824
required: false
@@ -80,7 +76,7 @@ runs:
8076
shell: bash
8177
if: ${{ inputs.debug == 'true' }}
8278
run: |
83-
echo "LW_LOG=debug" >> $GITHUB_ENV
79+
echo "LW_LOG=debug" >> $GITHUB_ENV
8480
- if: steps.cache.outputs.cache-hit != 'true'
8581
shell: bash
8682
run: |
@@ -118,5 +114,4 @@ runs:
118114
debug: '${{ inputs.debug }}'
119115
token: '${{ inputs.token || github.token }}'
120116
footer: '${{ inputs.footer }}'
121-
eval-indirect-dependencies: '${{ inputs.eval-indirect-dependencies }}'
122117
autofix: '${{ inputs.autofix }}'

src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { error, getInput, info, setOutput, warning } from '@actions/core'
2-
import { existsSync, appendFileSync } from 'fs'
2+
import { appendFileSync, existsSync } from 'fs'
33
import {
44
downloadArtifact,
55
postCommentIfInPr,
66
resolveExistingCommentIfFound,
77
uploadArtifact,
88
} from './actions'
9+
import { downloadKeys, trustedKeys } from './keys'
910
import { compareResults, createPRs, printResults } from './tool'
1011
import {
1112
autofix,
@@ -15,12 +16,10 @@ import {
1516
getActionRef,
1617
getMsSinceStart,
1718
getOptionalEnvVariable,
18-
getOrDefault,
1919
getRequiredEnvVariable,
2020
getRunUrl,
2121
telemetryCollector,
2222
} from './util'
23-
import { downloadKeys, trustedKeys } from './keys'
2423

2524
const scaSarifReport = 'scaReport/output.sarif'
2625
const scaReport = 'sca.sarif'
@@ -42,7 +41,6 @@ async function runAnalysis() {
4241

4342
info('Analyzing ' + target)
4443
telemetryCollector.addField('tools', 'sca')
45-
const indirectDeps = getInput('eval-indirect-dependencies')
4644
const toUpload: string[] = []
4745

4846
await downloadKeys()
@@ -62,9 +60,6 @@ async function runAnalysis() {
6260
trustedKeys,
6361
'--secret',
6462
]
65-
if (indirectDeps.toLowerCase() === 'false') {
66-
args.push('--eval-direct-only')
67-
}
6863
if (debug()) {
6964
args.push('--debug')
7065
}

0 commit comments

Comments
 (0)