Collection of workflow files for reference
1when:
2 - event: ["push", "pull_request"]
3 branch: ["main", "develop"]
4 - event: ["manual"]
5
6engine: "nixery"
7
8dependencies:
9 nixpkgs:
10 - go
11 - snyk
12
13environment:
14 SNYK_DISABLE_ANALYTICS: 1
15
16steps:
17 # This step may not be necessary depending on your project language.
18 # See the snyk docs for more info
19 - name: build application
20 command: |
21 go build -v ./...
22
23 # Set SNYK_TOKEN as a repository secret
24 - name: snyk auth
25 command: |
26 snyk auth "$SNYK_TOKEN"
27
28 - name: snyk test
29 command: |
30 snyk monitor --all-projects
31 snyk test --all-projects
32
33 - name: snyk code test
34 command: |
35 snyk code test --json-file-output=snyk_code.json