Skip to content

Commit 8df0666

Browse files
Create testing.yml
1 parent b8457bd commit 8df0666

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Diff for: .github/workflows/testing.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'Go Web App Testing'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
deploy:
11+
name: GoWebAPI Test
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Snyk CLI to check for security issues
23+
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb
24+
25+
- name: Snyk Auth
26+
run: snyk auth ${{ secrets.snykToken }}
27+
28+
- name: Snyk SCA Go
29+
run: snyk test webappsfortesting/gowebapi --org=${{ secrets.snykOrg }}
30+
31+
- name: Snyk SAST
32+
run: snyk code test webappsfortesting/gowebapi --org=${{ secrets.snykOrg }}
33+
34+
- name: Build a Docker image to test for vulnerabilities
35+
working-directory: webappsfortesting/gowebapi
36+
run: docker build -t gowebapi .
37+
38+
- name: Snyk Container monitor
39+
run: snyk container test gowebapi --file=webappsfortesting/gowebapi/Dockerfile

0 commit comments

Comments
 (0)