Skip to content

Commit 001fd4e

Browse files
committed
Enhance BlackDuck scan action with scan_mode input and update workflow to use MAVEN_VERSION environment variable
1 parent 008c052 commit 001fd4e

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

.github/actions/scan-with-blackduck/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ inputs:
1515
maven-version:
1616
description: The Maven version the build shall run with.
1717
required: true
18+
scan_mode:
19+
description: The scan mode to use (FULL or RAPID)
20+
default: 'FULL'
21+
required: false
1822

1923
runs:
2024
using: composite
@@ -51,4 +55,4 @@ runs:
5155
env:
5256
PIPER_token: ${{ inputs.blackduck_token }}
5357
GITHUB_token: ${{ inputs.github_token }}
54-
SCAN_MODE: FULL
58+
SCAN_MODE: ${{ inputs.scan_mode }}

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
name: CI
22

3+
env:
4+
MAVEN_VERSION: '3.9.12'
5+
36
on:
47
workflow_dispatch:
58
push:
69
branches: [main]
710

811
jobs:
12+
blackduck:
13+
name: Blackduck Scan
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Scan With Black Duck
21+
uses: ./.github/actions/scan-with-blackduck
22+
with:
23+
blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }}
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
maven-version: ${{ env.MAVEN_VERSION }}
26+
scan_mode: RAPID
27+
928
build-and-test:
1029
uses: ./.github/workflows/pipeline.yml
1130
with:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ By default, the plugin operates without a dedicated storage target, storing atta
135135
Other available storage targets:
136136

137137
- [Amazon, Azure, and Google Object Stores](storage-targets/cds-feature-attachments-oss)
138-
- [local file system as a storage backend](storage-targets/cds-feature-attachments-fs) (only for testing scenarios)
138+
- [local file system as a storage backend](storage-targets/cds-feature-attachments-fs)
139+
140+
> **Warning:** The [file system storage target](storage-targets/cds-feature-attachments-fs) (`cds-feature-attachments-fs`) is intended **only for local development and testing purposes**. It is **not suitable for production or deployed environments**. For production use, configure one of the supported object stores (AWS, Azure, or Google).
139141
140142
When using a dedicated storage target, the attachment is not stored in the underlying database; instead, it is saved on the specified storage target and only a reference to the file is kept in the database, as defined in the [CDS model](cds-feature-attachments/src/main/resources/cds/com.sap.cds/cds-feature-attachments/attachments.cds#L20).
141143

0 commit comments

Comments
 (0)