]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
github: Update coverity workflow
authorStéphane Graber <stgraber@stgraber.org>
Wed, 18 Dec 2024 20:05:57 +0000 (15:05 -0500)
committerStéphane Graber <stgraber@stgraber.org>
Thu, 19 Dec 2024 03:23:12 +0000 (22:23 -0500)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
.github/workflows/coverity.yml

index d58b5506875ec38ee4aace59a323d30783dd73f7..043181df0569663e5669f7aadaeb50fd9b99cc91 100644 (file)
@@ -1,14 +1,17 @@
-name: Coverity build and upload
+name: Coverity
 on:
   push:
     branches:
       - main
+
 permissions:
   contents: read
 
 jobs:
-  test:
+  coverity:
+    name: Build and upload
     runs-on: ubuntu-24.04
+    if: github.repository == 'lxc/lxc'
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
@@ -27,18 +30,6 @@ jobs:
           sudo apt-get install -qq gcc clang meson
           sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev libselinux1-dev linux-libc-dev libpam0g-dev docbook2x libdbus-1-dev
 
-      - name: Compiler version
-        run: |
-          gcc --version
-
-      - name: Kernel version
-        run: |
-          uname -a
-
-      - name: Mount table
-        run: |
-          findmnt
-
       - name: Run coverity
         run: |
           # Configure
@@ -51,14 +42,14 @@ jobs:
 
           # Build
           cov-build --dir cov-int ninja -C ${BUILD}
-          tar czvf lxc.tgz cov-int
+          tar czvf upload.tgz cov-int
 
           # Submit the results
           curl \
             --form project=lxc/lxc \
             --form token=${TOKEN} \
             --form email=lxc-devel@lists.linuxcontainers.org \
-            --form file=@lxc.tgz \
+            --form file=@upload.tgz \
             --form version=main \
             --form description="${GITHUB_SHA}" \
             https://scan.coverity.com/builds?project=lxc/lxc