Skip to content

Commit 5376040

Browse files
Merge pull request #58 from veracode/feature/SDEVX-176
New lang support using CLI
2 parents 17bfa3b + 94305ec commit 5376040

11 files changed

+2
-350
lines changed

.github/workflows/veracode-build-artifact-for-scanning.yml

+1-41
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,13 @@ on:
1818

1919
jobs:
2020
build:
21-
if: ${{ inputs.event_name == 'java-pipeline-scan' || inputs.event_name == 'java-policy-scan' || inputs.event_name == 'java-sandbox-scan' || inputs.event_name == 'unidentified-lang-pipeline-scan' || inputs.event_name == 'unidentified-lang-policy-scan' || inputs.event_name == 'unidentified-lang-sandbox-scan' || inputs.event_name == 'dot-net-pipeline-scan' || inputs.event_name == 'dot-net-policy-scan' || inputs.event_name == 'dot-net-sandbox-scan'}}
21+
if: ${{ inputs.event_name == 'java-pipeline-scan' || inputs.event_name == 'java-policy-scan' || inputs.event_name == 'java-sandbox-scan' || inputs.event_name == 'unidentified-lang-pipeline-scan' || inputs.event_name == 'unidentified-lang-policy-scan' || inputs.event_name == 'unidentified-lang-sandbox-scan' || inputs.event_name == 'dot-net-pipeline-scan' || inputs.event_name == 'dot-net-policy-scan' || inputs.event_name == 'dot-net-sandbox-scan' || inputs.event_name == 'scala-pipeline-scan' || inputs.event_name == 'scala-policy-scan' || inputs.event_name == 'scala-sandbox-scan' || inputs.event_name == 'go-pipeline-scan' || inputs.event_name == 'go-policy-scan' || inputs.event_name == 'go-sandbox-scan' || inputs.event_name == 'source-code-pipeline-scan' || inputs.event_name == 'source-code-policy-scan' || inputs.event_name == 'source-code-sandbox-scan'}}
2222
uses: ./.github/workflows/veracode-default-build.yml
2323
with:
2424
repository: ${{ inputs.repository }}
2525
ref: ${{ inputs.ref }}
2626
token: ${{ inputs.token }}
2727

28-
build-java-maven:
29-
if: ${{ inputs.event_name == 'java-maven-pipeline-scan' || inputs.event_name == 'java-maven-policy-scan' || inputs.event_name == 'java-maven-sandbox-scan' }}
30-
uses: ./.github/workflows/veracode-build-java-cli-maven.yml
31-
with:
32-
repository: ${{ inputs.repository }}
33-
ref: ${{ inputs.ref }}
34-
token: ${{ inputs.token }}
35-
36-
build-java-gradle:
37-
if: ${{ inputs.event_name == 'java-gradle-pipeline-scan' || inputs.event_name == 'java-gradle-policy-scan' || inputs.event_name == 'java-gradle-sandbox-scan' }}
38-
uses: ./.github/workflows/veracode-build-java-cli-gradle.yml
39-
with:
40-
repository: ${{ inputs.repository }}
41-
ref: ${{ inputs.ref }}
42-
token: ${{ inputs.token }}
43-
44-
build-source-code-scan:
45-
if: ${{ inputs.event_name == 'source-code-pipeline-scan' || inputs.event_name == 'source-code-policy-scan' || inputs.event_name == 'source-code-sandbox-scan'}}
46-
uses: ./.github/workflows/veracode-build-source-code.yml
47-
with:
48-
repository: ${{ inputs.repository }}
49-
ref: ${{ inputs.ref }}
50-
token: ${{ inputs.token }}
51-
52-
build-go-package:
53-
if: ${{ inputs.event_name == 'go-pipeline-scan' || inputs.event_name == 'go-policy-scan' || inputs.event_name == 'go-sandbox-scan'}}
54-
uses: ./.github/workflows/veracode-build-go.yml
55-
with:
56-
repository: ${{ inputs.repository }}
57-
ref: ${{ inputs.ref }}
58-
token: ${{ inputs.token }}
59-
6028
build-tsql-package:
6129
if: ${{ inputs.event_name == 'tsql-pipeline-scan' || inputs.event_name == 'tsql-policy-scan' || inputs.event_name == 'tsql-sandbox-scan'}}
6230
uses: ./.github/workflows/veracode-build-tsql.yml
@@ -81,14 +49,6 @@ jobs:
8149
ref: ${{ inputs.ref }}
8250
token: ${{ inputs.token }}
8351

84-
build-scala-package:
85-
if: ${{ inputs.event_name == 'scala-pipeline-scan' || inputs.event_name == 'scala-policy-scan' || inputs.event_name == 'scala-sandbox-scan'}}
86-
uses: ./.github/workflows/veracode-build-scala.yml
87-
with:
88-
repository: ${{ inputs.repository }}
89-
ref: ${{ inputs.ref }}
90-
token: ${{ inputs.token }}
91-
9252
build-dart-package:
9353
if: ${{ inputs.event_name == 'dart-pipeline-scan' || inputs.event_name == 'dart-policy-scan' || inputs.event_name == 'dart-sandbox-scan'}}
9454
uses: ./.github/workflows/veracode-build-dart.yml

.github/workflows/veracode-build-dot-net.yml

-57
This file was deleted.

.github/workflows/veracode-build-go.yml

-59
This file was deleted.

.github/workflows/veracode-build-java-cli-gradle.yml

-48
This file was deleted.

.github/workflows/veracode-build-java-cli-maven.yml

-53
This file was deleted.

.github/workflows/veracode-build-scala.yml

-53
This file was deleted.

.github/workflows/veracode-build-source-code.yml

-32
This file was deleted.

.github/workflows/veracode-code-analysis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ concurrency:
99
on:
1010
repository_dispatch:
1111
types:
12-
- java-maven-pipeline-scan
13-
- java-maven-policy-scan
14-
- java-gradle-pipeline-scan
15-
- java-gradle-policy-scan
1612
- source-code-pipeline-scan
1713
- source-code-policy-scan
1814
- dot-net-pipeline-scan

.github/workflows/veracode-default-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
container:
18-
image: veracode/scm-packaging:2.0.0
18+
image: veracode/scm-packaging:2.1.0
1919
env:
2020
VERACODE_API_KEY_ID: '${{ secrets.VERACODE_API_ID }}'
2121
VERACODE_API_KEY_SECRET: '${{ secrets.VERACODE_API_KEY }}'

0 commit comments

Comments
 (0)