-
Notifications
You must be signed in to change notification settings - Fork 33
33 lines (30 loc) · 888 Bytes
/
Copy pathblackduck.yaml
File metadata and controls
33 lines (30 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Blackduck Scan'
on:
workflow_dispatch:
schedule:
- cron: 0 23 * * *
jobs:
scan:
name: "Blackduck Scan"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- name: "Scan With Black Duck"
uses: ./.github/actions/scan-with-blackduck
with:
token: ${{ secrets.BLACKDUCK_TOKEN }}
notify-job:
runs-on: ubuntu-latest
needs: [ scan ]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Notify
run: python .pipeline/scripts/notify.py
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
WORKFLOW: ${{ github.workflow }}
WORKFLOW_RUN_URL: https://github.com/SAP/cloud-sdk-java/actions/runs/${{ github.run_id }}
BRANCH_NAME: ${{ github.ref_name }}