diff --git a/.github/workflows/sycl-coverity.yml b/.github/workflows/sycl-coverity.yml index 8a269431a8edd..ed25b320a55aa 100644 --- a/.github/workflows/sycl-coverity.yml +++ b/.github/workflows/sycl-coverity.yml @@ -1,6 +1,18 @@ name: Coverity on: workflow_dispatch: + inputs: + description: + description: 'Custom build description' + required: true + type: string + default: 'Out-of-order Coverity scan' + ref: + description: 'Git ref to checkout and scan' + required: true + type: string + default: 'sycl' + schedule: - cron: '0 0 * * 0' @@ -27,7 +39,7 @@ jobs: - uses: ./devops/actions/cached_checkout with: path: src - ref: ${{ github.sha }} + ref: ${{ inputs.ref || github.sha }} cache_path: "/__w/repo_cache/" - name: Get coverity tool @@ -56,10 +68,15 @@ jobs: - name: Submit build run: | + default_description="${{ inputs.description }}" + if [[ -z $default_description ]]; then + default_description="Regular build" + fi + # Initialize a build. Fetch a cloud upload url. curl -X POST \ - -d version="sycl: ${{ github.sha }}" \ - -d description="Regular build" \ + -d version="${{ inputs.ref || github.sha }}" \ + -d description="$default_description" \ -d email=${{ secrets.COVERITY_EMAIL }} \ -d token=${{ secrets.COVERITY_TOKEN }} \ -d file_name="intel_llvm.tgz" \