Skip to content

Commit b87b4a9

Browse files
committed
chore(COD-6066): simplify the GitHub action code further
1 parent 45ed24e commit b87b4a9

4 files changed

Lines changed: 3 additions & 75 deletions

File tree

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ runs:
8686
cd ../lacework-code-security
8787
HUSKY=0 npm install
8888
npm run compile
89-
yq -i -o yaml 'del(.runs.steps) | del(.outputs) | .runs.using="node16" | .runs.main="dist/src/index.js" | .runs.post="dist/src/post.js"' action.yaml
89+
yq -i -o yaml 'del(.runs.steps) | del(.outputs) | .runs.using="node16" | .runs.main="dist/src/index.js"' action.yaml
9090
- id: run-analysis
9191
uses: './../lacework-code-security'
9292
with:

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { callLaceworkCli, debug, generateUILink, getOptionalEnvVariable } from '
1111
import path from 'path'
1212

1313
const artifactPrefix = getInput('artifact-prefix')
14-
const sarifReportPath = getInput('code-scanning-path')
15-
const comparisonMarkdownPath = 'comparison.md'
14+
export const sarifReportPath = getInput('code-scanning-path')
15+
export const comparisonMarkdownPath = 'comparison.md'
1616

1717
async function runAnalysis() {
1818
const target = getInput('target')

src/lw-json.ts

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/post.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)