1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 23:05:26 +02:00

fix(security): update dependency and binary version [EE-5798] (#10192)

This commit is contained in:
Oscar Zhou 2023-09-05 17:23:12 +12:00 committed by GitHub
parent a02f9f1f07
commit 0f1e77a6d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 30 additions and 21 deletions

View file

@ -25,7 +25,7 @@ jobs:
cache: 'yarn'
- uses: actions/setup-go@v4
with:
go-version: 1.19.5
go-version: 1.21.0
- run: yarn --frozen-lockfile
- name: Run linters
uses: wearerequired/lint-action@v1

View file

@ -61,7 +61,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v3
with:
go-version: '1.19.5'
go-version: '1.21.0'
- name: download Go modules
run: cd ./api && go get -t -v -d ./...
@ -72,7 +72,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
yarn global add snyk
snyk test --file=./api/go.mod --json-file-output=snyk.json 2>/dev/null || :
snyk test --file=./go.mod --json-file-output=snyk.json 2>/dev/null || :
- name: upload scan result as develop artifact
uses: actions/upload-artifact@v3

View file

@ -7,7 +7,7 @@ on:
- edited
paths:
- 'package.json'
- 'api/go.mod'
- 'go.mod'
- 'gruntfile.js'
- 'build/linux/Dockerfile'
- 'build/linux/alpine.Dockerfile'
@ -84,7 +84,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v3
with:
go-version: '1.19.5'
go-version: '1.21.0'
- name: download Go modules
run: cd ./api && go get -t -v -d ./...
@ -95,7 +95,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
yarn global add snyk
snyk test --file=./api/go.mod --json-file-output=snyk.json 2>/dev/null || :
snyk test --file=./go.mod --json-file-output=snyk.json 2>/dev/null || :
- name: upload scan result as pull-request artifact
uses: actions/upload-artifact@v3
@ -143,10 +143,10 @@ jobs:
- name: checkout code
uses: actions/checkout@master
- name: install Go 1.19.5
- name: install Go 1.21.0
uses: actions/setup-go@v3
with:
go-version: '1.19.5'
go-version: '1.21.0'
- name: install Node.js 18.x
uses: actions/setup-node@v3

View file

@ -20,6 +20,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.5
go-version: 1.21.0
- name: Run tests
run: make test-server

View file

@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.21.0'
- name: Download golang modules
run: cd ./api && go get -t -v -d ./...