Add workflows for main, prs to main and scan with blackduck and sonar… #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI - MAIN | |
| env: | |
| MAVEN_VERSION: '3.9.12' | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| actions: read | |
| security-events: write | |
| packages: read | |
| jobs: | |
| blackduck: | |
| name: Blackduck Scan | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Scan With Black Duck | |
| uses: ./.github/actions/scan-with-blackduck | |
| with: | |
| blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| maven-version: ${{ env.MAVEN_VERSION }} | |
| scan_mode: RAPID | |
| build-and-test: | |
| uses: ./.github/workflows/pipeline.yml | |
| with: | |
| deploy-snapshot: true | |
| secrets: inherit |