Skip to content

Commit 9823c07

Browse files
[CI] small fixes in coverity workflow
1 parent 32721e9 commit 9823c07

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/coverity.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coverity check
1+
# Coverity - static analysis build. It requires Coverity's token (set in CI's secret).
22
name: Coverity
33

44
on:
@@ -7,7 +7,7 @@ on:
77
cov_push_tarball:
88
description: 'Send Coverity tarball'
99
required: true
10-
default: 'true'
10+
default: true
1111
type: boolean
1212
schedule:
1313
- cron: '0 0 * * *'
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
coverity:
2020
name: Coverity
21-
# run only on upstream; forks do not know Username/Password
21+
# run only on upstream; forks don't have token for upstream's cov project
2222
if: github.repository == 'oneapi-src/unified-memory-framework'
2323
runs-on: ubuntu-latest
2424
steps:
@@ -35,11 +35,11 @@ jobs:
3535
3636
- name: Download Coverity
3737
run: |
38-
wget -nv https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework" -O coverity_tool.tgz
38+
wget -O coverity_tool.tgz -nv https://scan.coverity.com/download/linux64 \
39+
--post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework"
3940
4041
- name: Extract Coverity
41-
run: |
42-
tar xzf coverity_tool.tgz
42+
run: tar xzf coverity_tool.tgz
4343

4444
- name: Configure CMake
4545
run: >
@@ -60,8 +60,7 @@ jobs:
6060
cov-build --dir ${{github.workspace}}/cov-int cmake --build ${{github.workspace}}/build --config Release -j$(nproc)
6161
6262
- name: Create tarball to analyze
63-
run: >
64-
tar czvf cov-int_umf.tgz cov-int
63+
run: tar czvf cov-int_umf.tgz cov-int
6564

6665
- name: Push to Coverity Scan
6766
if: ${{ github.event_name == 'schedule' || github.event.inputs.cov_push_tarball == 'true' }}

0 commit comments

Comments
 (0)