Migrate coverity-scan to Github Actions (#8321)
* Migrate coverity-scan to Github Actions * Move to job conditional and use local install-required-pacakges.sh * Add COVERITY_* secrets and add them to the Github secrets store with values from Travis copied over
James Mills committed
Mar 10, 2020 at 08:26 UTC
e1528f6a9c5afd56b19a456469ed52deea7ef9bb
2 files changed
+24
-9
.github/workflows/coverity.yml
new
+24
@@ -0,0 +1,24 @@
1
+---
2
+# Runs coverity-scan.sh every 24h on `master`
3
+name: Coverity Scan
4
+on:
5
+ schedule:
6
+ - cron: '0 1 * * *'
7
+jobs:
8
+ coverity:
9
+ if: github.repository == 'netdata/netdata'
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v2
14
+ - name: Prepare environment
15
+ run: |
16
+ ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
17
+ sudo apt-get install -y libjson-c-dev libipmimonitoring-dev libcups2-dev libsnappy-dev \
18
+ libprotobuf-dev libprotoc-dev libssl-dev protobuf-compiler
19
+ - name: Run coverity-scan
20
+ env:
21
+ COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
22
+ COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
23
+ run: |
24
+ ./coverity-scan.sh --with-install
.travis.yml
-9
@@ -451,15 +451,6 @@ jobs:
451
# This is the nightly pre-execution step (Jobs, preparatory steps for nightly, etc)
452
- stage: Nightly operations
453
454
- name: Run coverity scan
455
- before_script:
456
- - bash <(curl -sS https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh) --dont-wait --non-interactive netdata
457
- - sudo apt-get install -y libjson-c-dev libipmimonitoring-dev libcups2-dev libsnappy-dev libprotobuf-dev libprotoc-dev libssl-dev protobuf-compiler
458
- script: ./coverity-scan.sh --with-install
459
- after_failure: post_message "TRAVIS_MESSAGE" "<!here> Coverity nightly run has failed" "${NOTIF_CHANNEL}"
460
- env:
461
- - ALLOW_SOFT_FAILURE_HERE=true
462
-
454
- name: Kickstart files integrity testing (extended)
455
script: ./tests/installer/checksums.sh
456