Skip to content

Commit

Permalink
Merge 7286135 into 5803e4e
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Kihlman committed Dec 9, 2019
2 parents 5803e4e + 7286135 commit eed2745
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: static code analysis

on: [push]
env:
SCAN_IMG:
yes-docker-local.artifactory.in.yubico.org/static-code-analysis/c:v1
COMPILE_DEPS: "libykclient-dev libykpers-1-dev libyubikey-dev"

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 and fail if warnings
run: |
docker run -v${PWD}:/k -e COMPILE_DEPS="${COMPILE_DEPS}" \
-e PROJECT_NAME=${GITHUB_REPOSITORY#Yubico/} -t ${SCAN_IMG}
- uses: actions/upload-artifact@master
if: failure()
with:
name: suppression_files
path: suppression_files

0 comments on commit eed2745

Please sign in to comment.