Skip to content

Go Web App Testing

Go Web App Testing #1

Workflow file for this run

name: 'Go Web App Testing'
on:
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
name: GoWebAPI Test
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Snyk CLI to check for security issues
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb
- name: Snyk Auth
run: snyk auth ${{ secrets.snykToken }}
- name: Snyk SCA Go
run: snyk test webappsfortesting/gowebapi --org=${{ secrets.snykOrg }}
- name: Snyk SAST
run: snyk code test webappsfortesting/gowebapi --org=${{ secrets.snykOrg }}
- name: Build a Docker image to test for vulnerabilities
working-directory: webappsfortesting/gowebapi
run: docker build -t gowebapi .
- name: Snyk Container monitor
run: snyk container test gowebapi --file=webappsfortesting/gowebapi/Dockerfile