Skip to content

Commit

Permalink
Merge pull request #58 from veracode/feature/SDEVX-176
Browse files Browse the repository at this point in the history
New lang support using CLI
  • Loading branch information
veraakarthikbharadwaj authored Jul 23, 2024
2 parents 17bfa3b + 94305ec commit 5376040
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 350 deletions.
42 changes: 1 addition & 41 deletions .github/workflows/veracode-build-artifact-for-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,13 @@ on:

jobs:
build:
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'}}
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'}}
uses: ./.github/workflows/veracode-default-build.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-java-maven:
if: ${{ inputs.event_name == 'java-maven-pipeline-scan' || inputs.event_name == 'java-maven-policy-scan' || inputs.event_name == 'java-maven-sandbox-scan' }}
uses: ./.github/workflows/veracode-build-java-cli-maven.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-java-gradle:
if: ${{ inputs.event_name == 'java-gradle-pipeline-scan' || inputs.event_name == 'java-gradle-policy-scan' || inputs.event_name == 'java-gradle-sandbox-scan' }}
uses: ./.github/workflows/veracode-build-java-cli-gradle.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-source-code-scan:
if: ${{ inputs.event_name == 'source-code-pipeline-scan' || inputs.event_name == 'source-code-policy-scan' || inputs.event_name == 'source-code-sandbox-scan'}}
uses: ./.github/workflows/veracode-build-source-code.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-go-package:
if: ${{ inputs.event_name == 'go-pipeline-scan' || inputs.event_name == 'go-policy-scan' || inputs.event_name == 'go-sandbox-scan'}}
uses: ./.github/workflows/veracode-build-go.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-tsql-package:
if: ${{ inputs.event_name == 'tsql-pipeline-scan' || inputs.event_name == 'tsql-policy-scan' || inputs.event_name == 'tsql-sandbox-scan'}}
uses: ./.github/workflows/veracode-build-tsql.yml
Expand All @@ -81,14 +49,6 @@ jobs:
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-scala-package:
if: ${{ inputs.event_name == 'scala-pipeline-scan' || inputs.event_name == 'scala-policy-scan' || inputs.event_name == 'scala-sandbox-scan'}}
uses: ./.github/workflows/veracode-build-scala.yml
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

build-dart-package:
if: ${{ inputs.event_name == 'dart-pipeline-scan' || inputs.event_name == 'dart-policy-scan' || inputs.event_name == 'dart-sandbox-scan'}}
uses: ./.github/workflows/veracode-build-dart.yml
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/veracode-build-dot-net.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/veracode-build-go.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/veracode-build-java-cli-gradle.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/veracode-build-java-cli-maven.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/veracode-build-scala.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/veracode-build-source-code.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/veracode-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ concurrency:
on:
repository_dispatch:
types:
- java-maven-pipeline-scan
- java-maven-policy-scan
- java-gradle-pipeline-scan
- java-gradle-policy-scan
- source-code-pipeline-scan
- source-code-policy-scan
- dot-net-pipeline-scan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-default-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: veracode/scm-packaging:2.0.0
image: veracode/scm-packaging:2.1.0
env:
VERACODE_API_KEY_ID: '${{ secrets.VERACODE_API_ID }}'
VERACODE_API_KEY_SECRET: '${{ secrets.VERACODE_API_KEY }}'
Expand Down
Loading

0 comments on commit 5376040

Please sign in to comment.