Skip to content

Commit 5aa9cd0

Browse files
chore: Update-bdba-token-rotation to monthly (#56)
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it update validity to follow schedule --------- Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
1 parent d729ab2 commit 5aa9cd0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/rotate-bdba-token.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ jobs:
2424
# Generate new API token using the BDBA API
2525
- name: Generate new BDBA API token
2626
id: generate-bdba-token
27-
if: ${{ env.SHOULD_RUN == 'true' }}
2827
run: |
2928
# Generate new token from the Black Duck Binary Analysis API
30-
# Using the validity period of 7257600 seconds (84 days / 12 weeks)
29+
# Using the validity period of 3024000 seconds (35 days)
3130
RESPONSE=$(curl -s -X PUT \
3231
-H "Content-Type: application/json" \
3332
-H "Authorization: Bearer ${{ secrets.BDBA_API_TOKEN }}" \
34-
-d '{"validity": 7257600}' \
33+
-d '{"validity": 3024000}' \
3534
"https://bdba.tools.sap/api/key/")
3635
3736
# Extract token from response

0 commit comments

Comments
 (0)