name: static code analysis

on: [push]
env:
  SCAN_IMG:
    yes-docker-local.artifactory.in.yubico.org/static-code-analysis/c:v1
  PVS_IGNORE_WARNINGS="V1037,V1048"

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master

    - name: Prep scan
      run: |
        docker login yes-docker-local.artifactory.in.yubico.org/ \
             -u svc-static-code-analysis-reader \
             -p ${{ secrets.ARTIFACTORY_READER_TOKEN }}
        docker pull ${SCAN_IMG}

    - name: Scan but do not fail on warnings
      run: |
        docker run -v${PWD}:/k -e COMPILE_DEPS="${COMPILE_DEPS}" \
          -e PROJECT_NAME=${GITHUB_REPOSITORY#Yubico/} -t ${SCAN_IMG} || true

    - uses: actions/upload-artifact@master
      if: failure()
      with:
        name: suppression_files
        path: suppression_files

name: static code analysis

on: [push]
env:
  SCAN_IMG:
    yes-docker-local.artifactory.in.yubico.org/static-code-analysis/c:v1
  PVS_IGNORE_WARNINGS: "V1037,V1048"

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master

    - name: Prep scan
      run: |
        docker login yes-docker-local.artifactory.in.yubico.org/ \
             -u svc-static-code-analysis-reader \
             -p ${{ secrets.ARTIFACTORY_READER_TOKEN }}
        docker pull ${SCAN_IMG}

    - name: Scan but do not fail on warnings
      run: |
        docker run -v${PWD}:/k -e COMPILE_DEPS="${COMPILE_DEPS}" \
          -e PROJECT_NAME=${GITHUB_REPOSITORY#Yubico/} -t ${SCAN_IMG} || true

    - uses: actions/upload-artifact@master
      if: failure()
      with:
        name: suppression_files
        path: suppression_files

Fix syntax in yaml file (sorry about that)
Fix syntax in yaml file (sorry about that)
