diff options
-rw-r--r-- | .github/workflows/coverity.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 0000000..1f5cee9 --- /dev/null +++ b/.github/workflows/coverity.yml | |||
@@ -0,0 +1,27 @@ | |||
1 | name: Coverity | ||
2 | |||
3 | on: | ||
4 | schedule: | ||
5 | - cron: "0 0 * * *" | ||
6 | |||
7 | jobs: | ||
8 | scan: | ||
9 | runs-on: ubuntu-latest | ||
10 | if: ${{ github.repository_owner == 'libressl-portable' }} | ||
11 | env: | ||
12 | COVERITY_SCAN_PROJECT_NAME: 'libressl-portable/portable' | ||
13 | COVERITY_SCAN_BRANCH_PATTERN: '*' | ||
14 | COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com' | ||
15 | COVERITY_SCAN_BUILD_COMMAND_PREPEND: "./autogen.sh && ./configure && make dist && tar zxf libressl-*.tar.gz && rm libressl-*.tar.gz && cd libressl-* && mkdir build-static && mkdir build-shared && cmake -GNinja -DBUILD_SHARED_LIBS=ON .." | ||
16 | COVERITY_SCAN_BUILD_COMMAND: "ninja" | ||
17 | steps: | ||
18 | - uses: actions/checkout@v2 | ||
19 | - name: Install apt dependencies | ||
20 | run: | | ||
21 | sudo apt-get update | ||
22 | sudo apt-get install -y cmake ninja-build | ||
23 | - name: Run Coverity Scan | ||
24 | env: | ||
25 | COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
26 | run: | | ||
27 | curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true \ No newline at end of file | ||