From 032ab3b57e505df4bdcb15b3317f0c7240a05e00 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Mon, 8 Jul 2024 12:43:14 -0500 Subject: [PATCH 1/2] Add Coverity scan workflow --- .github/workflows/coverity-scan-fixes.yml | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/coverity-scan-fixes.yml diff --git a/.github/workflows/coverity-scan-fixes.yml b/.github/workflows/coverity-scan-fixes.yml new file mode 100644 index 0000000000..71955b7a96 --- /dev/null +++ b/.github/workflows/coverity-scan-fixes.yml @@ -0,0 +1,40 @@ +name: Coverity Scan master branch on a weekly basis + +#on: +# workflow_dispatch: +# schedule: +# - cron: "7 3 * * 3" +on: + push: + branches: [ 'master', 'main', 'release/**' ] + +jobs: + coverity: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: master + + - name: Configure wolfSSL + run: | + ./autogen.sh + ./configure --enable-all + + - name: Check secrets + env: + token_var: ${{ secrets.COVERITY_SCAN_TOKEN }} + email_var: ${{ secrets.COVERITY_SCAN_EMAIL }} + run: | + token_len=${#token_var} + echo "$token_len" + email_len=${#email_var} + echo "$email_len" + + - uses: vapier/coverity-scan-action@v1 + with: + build_language: 'cxx' + project: "wolfSSL/wolfssl" + token: ${{ secrets.COVERITY_SCAN_TOKEN }} + email: ${{ secrets.COVERITY_SCAN_EMAIL }} + command: "make" From f4b603fa4e6db6ad1a03333c480c0f068240a01a Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Wed, 10 Jul 2024 08:37:42 -0500 Subject: [PATCH 2/2] test cron 2xd --- .github/workflows/coverity-scan-fixes.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverity-scan-fixes.yml b/.github/workflows/coverity-scan-fixes.yml index 71955b7a96..687a2394e0 100644 --- a/.github/workflows/coverity-scan-fixes.yml +++ b/.github/workflows/coverity-scan-fixes.yml @@ -1,12 +1,13 @@ name: Coverity Scan master branch on a weekly basis -#on: -# workflow_dispatch: -# schedule: -# - cron: "7 3 * * 3" on: - push: - branches: [ 'master', 'main', 'release/**' ] + workflow_dispatch: + schedule: + - cron: "0 0,12 * * *" +# - cron: "0 0 * * 1" +#on: +# push: +# branches: [ 'master', 'main', 'release/**' ] jobs: coverity: