Skip to content

Commit

Permalink
MTM-60554 change to clompliancev3 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderFiszSoftwareag authored and GitHub Enterprise committed Aug 21, 2024
1 parent 8d4130a commit 905b6e9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/compliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,27 @@ jobs:
HASH=$(git rev-parse --short "$GITHUB_SHA")
echo "Setting VERSION to '$VERSION-build$(date +'%Y%m%d')-$HASH' (github.ref=${{ github.ref }})"
echo "BUILD_ID=$VERSION-build$(date +'%Y%m%d')-$HASH" >> $GITHUB_ENV
- uses: IOTA/c8y-component-base/.github/actions/compliance/third-party-compliance-setup@compliance-v3
with:
component-name: ${{ env.COMPONENT_NAME }}
build-id: ${{ env.BUILD_ID }} # Use the build id generated during the build process (with a unique suffix for PRs)
# Pass organization-level vars/secrets throught to the action; don't touch these
tpsafe-config: ${{ vars.C8Y_TPSAFE_CONFIG }}
tpsafe-api-key: ${{ secrets.C8Y_TPSAFE_API_KEY }}
tpsafe-rules-app-private-key: ${{ secrets.C8Y_TPSAFE_RULES_APP_PRIVATE_KEY }}

- name: Uploading Gateway BOM file
uses: IOTA/c8y-component-base/.github/actions/compliance/third-party-upload@v2.0
uses: IOTA/c8y-component-base/.github/actions/compliance/third-party-upload@compliance-v3
with:
cyclonedx-bom-files: ./target/java-sdk-bom.json # space-separated list of BOM files in CycloneDX format

- name: Check approval
uses: IOTA/c8y-component-base/.github/actions/compliance/third-party-licensing-check@v2.0
uses: IOTA/c8y-component-base/.github/actions/compliance/third-party-licensing-check@compliance-v3
with:
dry-run: ${{ contains(github.event.pull_request.labels.*.name, 'tp-request-skip') }} # during workflow dev/testing set this label on the PR; prevents submitting third party approval requests to TCA

- uses: IOTA/c8y-component-base/.github/actions/compliance/export@v2.0
- uses: IOTA/c8y-component-base/.github/actions/compliance/export@compliance-v3
name: Review Compliance Export
id: compliance-export
if: always()
Expand Down

0 comments on commit 905b6e9

Please sign in to comment.