removes snyk cli scan - this project will now use scm integration (#241) #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: kics scanning | |
on: | |
push: | |
branches: master | |
jobs: | |
kics: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.VULN_REPORTS_AWS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.VULN_REPORTS_AWS_SECRET_ACCESS_KEY }} | |
VULN_REPORTS_AWS_BUCKET: ${{ secrets.VULN_REPORTS_AWS_BUCKET }} | |
AWS_EC2_METADATA_DISABLED: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: run kics Scan | |
uses: checkmarx/[email protected] | |
with: | |
path: . | |
ignore_on_exit: results | |
output_path: res/ | |
- name: display kics results | |
run: | | |
cat res/results.json | |
- name: upload scan results | |
run: | | |
set -eu | |
KEY="`date +%Y`/`date +%m`/`date +%d`/${GITHUB_REPOSITORY#*/}_${GITHUB_REF#refs/heads/}_kics_`date +%s`.json" | |
echo "[i] writing to s3 object '$KEY'" | |
aws s3 cp res/results.json s3://$VULN_REPORTS_AWS_BUCKET/$KEY |