Skip to content

Commit 4dbec19

Browse files
chore(COD-4237): remove the hard-coded --secret option (#216)
1 parent c06a22a commit 4dbec19

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ runs:
8080
shell: bash
8181
if: ${{ inputs.debug == 'true' }}
8282
run: |
83-
echo "LW_LOG=debug" >> $GITHUB_ENV
83+
echo "LW_LOG=debug" >> $GITHUB_ENV
8484
- if: steps.cache.outputs.cache-hit != 'true'
8585
shell: bash
8686
run: |

src/index.ts

Lines changed: 2 additions & 4 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'
@@ -60,7 +59,6 @@ async function runAnalysis() {
6059
'ci',
6160
'--keyring',
6261
trustedKeys,
63-
'--secret',
6462
]
6563
if (indirectDeps.toLowerCase() === 'false') {
6664
args.push('--eval-direct-only')

0 commit comments

Comments
 (0)