Skip to content

Add workflows for main, prs to main and scan with blackduck and sonar… #7

Add workflows for main, prs to main and scan with blackduck and sonar…

Add workflows for main, prs to main and scan with blackduck and sonar… #7

Workflow file for this run

name: CI - MAIN

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 16, Col: 3): 'packages' is already defined
env:
MAVEN_VERSION: '3.9.12'
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
actions: read
security-events: write
packages: read
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