From 5b5f65f5ae839128429e09be161a1e3a6b457bda Mon Sep 17 00:00:00 2001 From: Coleb Mujurizi Date: Wed, 6 Apr 2022 18:21:20 +0200 Subject: [PATCH] tests: remove deprecated scan.yml workflow --- .github/workflows/scan.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/scan.yml diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml deleted file mode 100644 index 286857edd..000000000 --- a/.github/workflows/scan.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: static code analysis -# Documentation: https://github.com/Yubico/yes-static-code-analysis - -on: - push: - schedule: - - cron: '0 0 * * 1' - -env: - SCAN_IMG: - yubico-yes-docker-local.jfrog.io/static-code-analysis/java:v1 - SECRET: ${{ secrets.ARTIFACTORY_READER_TOKEN }} - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - - name: Scan and fail on warnings - run: | - if [ "${SECRET}" != "" ]; then - docker login yubico-yes-docker-local.jfrog.io/ \ - -u svc-static-code-analysis-reader -p ${SECRET} - docker pull ${SCAN_IMG} - docker run -v${PWD}:/k \ - -e PROJECT_NAME=${GITHUB_REPOSITORY#Yubico/} -t ${SCAN_IMG} - else - echo "No docker registry credentials, not scanning" - fi - - - uses: actions/upload-artifact@master - if: failure() - with: - name: suppression_files - path: suppression_files