aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-06 17:22:31 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-06 17:22:31 -0500
commit219a2319173037f84068e0addb111f1d147d04a3 (patch)
treee8b69af9e9eaabd4d70937b7f0e2edbaed5eaf0b /.github/workflows
parent8115f3274eab06743603aec502ae311e3bf0724b (diff)
add GH action to leverage coverity scan
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/coverity.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
new file mode 100644
index 00000000..029196bf
--- /dev/null
+++ b/.github/workflows/coverity.yml
@@ -0,0 +1,25 @@
+# GitHub actions workflow.
+# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
+
+# https://scan.coverity.com/projects/openrc-openrc
+name: Coverity Scan
+
+on:
+ push:
+ branches: [master]
+
+jobs:
+ coverity:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: sudo apt-get update -q
+ - run: sudo apt-get install -q -y build-essential libpam-dev meson libcap-dev
+ - run: meson setup builddir/
+ env:
+ CC: gcc
+ - uses: vapier/coverity-scan-action@v1
+ with:
+ command: ninja -C builddir
+ email: ${{ secrets.COVERITY_SCAN_EMAIL }}
+ token: ${{ secrets.COVERITY_SCAN_TOKEN }}