diff --git a/.github/workflows/blossom-ci.yml b/.github/workflows/blossom-ci.yml index f304ee88be..83ef89a5c3 100644 --- a/.github/workflows/blossom-ci.yml +++ b/.github/workflows/blossom-ci.yml @@ -7,24 +7,24 @@ on: issue_comment: types: [created] workflow_dispatch: - inputs: - platform: - description: 'runs-on argument' - required: false - args: - description: 'argument' - required: false + inputs: + platform: + description: "runs-on argument" + required: false + args: + description: "argument" + required: false jobs: Authorization: name: Authorization - runs-on: blossom + runs-on: blossom outputs: args: ${{ env.args }} steps: - name: Check if comment is issued by authorized person run: blossom-ci env: - OPERATION: 'AUTH' + OPERATION: "AUTH" REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }} Vulnerability-scan: @@ -37,21 +37,21 @@ jobs: with: repository: ${{ fromJson(needs.Authorization.outputs.args).repo }} ref: ${{ fromJson(needs.Authorization.outputs.args).ref }} - lfs: 'true' - - # repo specific steps + lfs: "true" + + # repo specific steps #- name: Setup java # uses: actions/setup-java@v1 # with: # java-version: 1.8 - + # add blackduck properties https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/631308372/Methods+for+Configuring+Analysis#Using-a-configuration-file #- name: Setup blackduck properties # run: | # PROJECTS=$(mvn -am dependency:tree | grep maven-dependency-plugin | awk '{ out="com.nvidia:"$(NF-1);print out }' | grep rapids | xargs | sed -e 's/ /,/g') # echo detect.maven.build.command="-pl=$PROJECTS -am" >> application.properties # echo detect.maven.included.scopes=compile >> application.properties - + - name: Run blossom action uses: NVIDIA/blossom-action@main env: @@ -61,7 +61,7 @@ jobs: args1: ${{ fromJson(needs.Authorization.outputs.args).args1 }} args2: ${{ fromJson(needs.Authorization.outputs.args).args2 }} args3: ${{ fromJson(needs.Authorization.outputs.args).args3 }} - + Job-trigger: name: Start ci job needs: [Vulnerability-scan] @@ -70,19 +70,18 @@ jobs: - name: Start ci job run: blossom-ci env: - OPERATION: 'START-CI-JOB' + OPERATION: "START-CI-JOB" CI_SERVER: ${{ secrets.CI_SERVER }} REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + Upload-Log: name: Upload log runs-on: blossom - if : github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' steps: - name: Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here) run: blossom-ci env: - OPERATION: 'POST-PROCESSING' + OPERATION: "POST-PROCESSING" CI_SERVER: ${{ secrets.CI_SERVER }} REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} -