Skip to content

Commit

Permalink
re-enable sonatype scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianReeves committed Oct 4, 2024
1 parent b255273 commit 22d82a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:

############### SONATYPE SCAN ###############
sonatype-scan:
if: false
if: always()
needs: [ci]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -188,8 +188,8 @@ jobs:
- name: Sonatype Lifecycle SCA Scan
uses: sonatype-nexus-community/iq-github-action@main
with:
username: ${{ secrets.ORG_MORPHIR_SONATYPE_USER }}
password: ${{ secrets.ORG_MORPHIR_SONATYPE_PASSWORD }}
username: ${{ secrets.SONATYPE_SCANNER_USERNAME }}
password: ${{ secrets.SONATYPE_SCANNER_PASSWORD }}
serverUrl: ${{ env.SonatypeUrl }}
applicationId: ${{ env.SonatypeAppId }}
stage: ${{ env.SonatypeStage }}
Expand All @@ -199,7 +199,7 @@ jobs:
if: always()
run: |
mkdir reports/
iqCredentials="${{ secrets.ORG_MORPHIR_SONATYPE_USER }}:${{ secrets.ORG_MORPHIR_SONATYPE_PASSWORD }}"
iqCredentials="${{ secrets.SONATYPE_SCANNER_USERNAME }}:${{ secrets.SONATYPE_SCANNER_PASSWORD }}"
echo 'Get internal app ID for public ID: '$SonatypeAppId
res=$(curl -u $iqCredentials --location $SonatypeUrl'api/v2/applications?publicId='$SonatypeAppId)
IFS='"' read -a array <<< "$res"
Expand Down

0 comments on commit 22d82a7

Please sign in to comment.