Mike Frysinger | 2140156 | 2021-10-04 23:37:57 -0400 | [diff] [blame] | 1 | # GitHub actions workflow. |
| 2 | # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions |
| 3 | |
| 4 | # https://scan.coverity.com/projects/google-minijail |
| 5 | name: Coverity Scan |
| 6 | |
| 7 | on: |
| 8 | push: |
| 9 | branches: [master] |
| 10 | |
Mike Frysinger | d90a268 | 2021-11-18 14:02:05 -0500 | [diff] [blame] | 11 | schedule: |
| 12 | # The GH mirroring from Google GoB does not trigger push actions. |
| 13 | # Fire it once a week to provide some coverage. |
| 14 | - cron: '39 2 * * WED' |
| 15 | |
| 16 | # Allow for manual triggers from the web. |
| 17 | workflow_dispatch: |
| 18 | |
Mike Frysinger | 2140156 | 2021-10-04 23:37:57 -0400 | [diff] [blame] | 19 | jobs: |
| 20 | coverity: |
| 21 | strategy: |
| 22 | matrix: |
| 23 | os: [ubuntu-latest] |
| 24 | cc: [clang] |
| 25 | runs-on: ${{ matrix.os }} |
| 26 | env: |
| 27 | CC: ${{ matrix.cc }} |
| 28 | steps: |
| 29 | - uses: actions/checkout@v2 |
| 30 | - name: Install system packages |
| 31 | run: sudo apt-get install -y libcap-dev |
| 32 | - uses: vapier/coverity-scan-action@v0 |
| 33 | with: |
| 34 | project: google%2Fminijail |
| 35 | email: vapier@google.com |
| 36 | token: ${{ secrets.COVERITY_SCAN_TOKEN }} |