mirror of https://github.com/portainer/portainer
fix(code/security): vcs status error [EE-5062] (#8510)
parent
95ac2cc4c3
commit
afe6cd6df0
|
@ -56,17 +56,20 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.19.4'
|
||||||
|
|
||||||
- name: Download go modules
|
- name: Download go modules
|
||||||
run: cd ./api && go get -t -v -d ./...
|
run: cd ./api && go get -t -v -d ./...
|
||||||
|
|
||||||
- name: Run Snyk to check for vulnerabilities
|
- name: Run Snyk to check for vulnerabilities
|
||||||
uses: snyk/actions/golang@master
|
|
||||||
continue-on-error: true # To make sure that artifact upload gets called
|
continue-on-error: true # To make sure that artifact upload gets called
|
||||||
env:
|
env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
args: --file=./api/go.mod
|
yarn global add snyk
|
||||||
json: true
|
snyk test --file=./api/go.mod --json-file-output=snyk.json 2>/dev/null || :
|
||||||
|
|
||||||
- name: Upload go security scan result as artifact
|
- name: Upload go security scan result as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
@ -78,17 +78,20 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.19.4'
|
||||||
|
|
||||||
- name: Download go modules
|
- name: Download go modules
|
||||||
run: cd ./api && go get -t -v -d ./...
|
run: cd ./api && go get -t -v -d ./...
|
||||||
|
|
||||||
- name: Run Snyk to check for vulnerabilities
|
- name: Run Snyk to check for vulnerabilities
|
||||||
uses: snyk/actions/golang@master
|
|
||||||
continue-on-error: true # To make sure that artifact upload gets called
|
continue-on-error: true # To make sure that artifact upload gets called
|
||||||
env:
|
env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
args: --file=./api/go.mod
|
yarn global add snyk
|
||||||
json: true
|
snyk test --file=./api/go.mod --json-file-output=snyk.json 2>/dev/null || :
|
||||||
|
|
||||||
- name: Upload go security scan result as artifact
|
- name: Upload go security scan result as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in New Issue