-
Notifications
You must be signed in to change notification settings - Fork 68
42 lines (40 loc) · 1.48 KB
/
blackduck.yml
File metadata and controls
42 lines (40 loc) · 1.48 KB
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
34
35
36
37
38
39
40
41
42
name: blackduck-scan
on:
workflow_dispatch:
schedule:
- cron: 0 23 * * *
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: sap/cloud-sdk-js/.github/actions/setup@main
with:
registry-token: ${{ secrets.NPM_TOKEN_ARTIFACTORY }}
- run: sudo apt-get install jq
- run: echo "project_version=$(cat package.json | jq '.version' | tr -d '"')" >> "$GITHUB_ENV"
- name: Blackduck Scan
env:
PIPER_token: ${{ secrets.BLACKDUCK_TOKEN }}
PROJECT_VERSION: ${{ env.project_version }}
DETECT_TIMEOUT: 6000
# DETECT_PNPM_EXCLUDED_WORKSPACES: test-packages/**
DETECT_PNPM_DEPENDENCY_TYPES_EXCLUDED: NON_PRODUCTION
uses: SAP/project-piper-action@43db6643d830b42717eda052300d87c22b0da73b
with:
command: detectExecuteScan
flags: \
--version=$PROJECT_VERSION \
--excludedDirectories=test-packages
- name: Slack Notify
if: failure() || cancelled()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Blackduck scan ${{ job.status }}
SLACK_MESSAGE: 'Test failed'
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2.3.3