name: Coverity Scan

on:
  push:
  pull_request:

jobs:
  coverity:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Install dependencies
      run: sudo apt-get install -y libssl-dev opensc softhsm
    - name: Bootstrap
      run: autoreconf --verbose --install --force
    - name: Configure
      run: ./configure
    - uses: vapier/coverity-scan-action@v1
      with:
        email: 'viktor.tarasov@gmail.com'
        token: ${{secrets.COVERITY_SCAN_TOKEN}}
        command: make

name: Coverity Scan

on:
  push:
  pull_request:

jobs:
  coverity:
    runs-on: ubuntu-latest
    env:
      token: ${{secrets.COVERITY_SCAN_TOKEN}}
    steps:
    - uses: actions/checkout@v2
      if: env.token
    - name: Get ready for scanning
      if: env.token
      run: |
        sudo apt-get install -y libssl-dev opensc softhsm
        autoreconf --verbose --install --force
        ./configure
    - uses: vapier/coverity-scan-action@v1
      if: env.token
      with:
        email: 'viktor.tarasov@gmail.com'
        token: ${{secrets.COVERITY_SCAN_TOKEN}}
        command: make

Check for a Coverity token before scanning
Check for a Coverity token before scanning
