Skip to content

Commit

Permalink
Extract tag or branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsloan committed Apr 4, 2024
1 parent a7ad15d commit 98c73fc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,9 @@ jobs:
path: ~/**/target/libs/*.jar
key: assembly-${{ matrix.module }}-${{ github.run_id }}
fail-on-cache-miss: true
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Get branch names.
id: branch_name
uses: tj-actions/branch-names@v8
- name: Dependency Check
uses: dependency-check/Dependency-Check_Action@main
with:
Expand All @@ -230,7 +229,7 @@ jobs:
format: 'HTML'
args: >-
--failOnCVSS 5
--suppression https://raw.githubusercontent.com/lensesio/stream-reactor/${{ steps.extract_branch.outputs.branch }}/suppression.xml
--suppression https://raw.githubusercontent.com/lensesio/stream-reactor/${{ steps.branch_name.outputs.tag }}${{ steps.branch_name.outputs.current_branch }}/suppression.xml
- name: Upload Test results
uses: actions/upload-artifact@master
with:
Expand Down

0 comments on commit 98c73fc

Please sign in to comment.