mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
Add Go 1.15 to the supported version and phase out the Go 1.12
Also updated the release automation to release gosec with use Go 1.15 Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
parent
a3895d5c55
commit
7234349e33
2 changed files with 15 additions and 15 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
@ -7,6 +7,17 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
|
tests-go-1-15:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Run Tests
|
||||||
|
uses: cedrickring/golang-action/go1.15@1.5.1
|
||||||
|
with:
|
||||||
|
args: make test
|
||||||
tests-go-1-14:
|
tests-go-1-14:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
@ -15,7 +26,7 @@ jobs:
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
uses: cedrickring/golang-action@1.5.1
|
uses: cedrickring/golang-action/go1.14@1.5.1
|
||||||
with:
|
with:
|
||||||
args: make test
|
args: make test
|
||||||
tests-go-1-13:
|
tests-go-1-13:
|
||||||
|
@ -29,19 +40,8 @@ jobs:
|
||||||
uses: cedrickring/golang-action/go1.13@1.5.1
|
uses: cedrickring/golang-action/go1.13@1.5.1
|
||||||
with:
|
with:
|
||||||
args: make test
|
args: make test
|
||||||
tests-go-1-12:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
steps:
|
|
||||||
- name: Checkout Source
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Run Tests
|
|
||||||
uses: cedrickring/golang-action/go1.12@1.5.1
|
|
||||||
with:
|
|
||||||
args: make test
|
|
||||||
coverage:
|
coverage:
|
||||||
needs: [tests-go-1-14, tests-go-1-13, tests-go-1-12]
|
needs: [tests-go-1-15, tests-go-1-14, tests-go-1-13]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.14.x
|
go-version: 1.15.x
|
||||||
- name : Get release version
|
- name : Get release version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
|
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
|
||||||
|
@ -33,6 +33,6 @@ jobs:
|
||||||
name: securego/gosec
|
name: securego/gosec
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
buildargs: GO_VERSION=1.14
|
buildargs: GO_VERSION=1.15
|
||||||
tags: "latest,${{ env.RELEASE_VERSION }}"
|
tags: "latest,${{ env.RELEASE_VERSION }}"
|
||||||
tag_names: true
|
tag_names: true
|
||||||
|
|
Loading…
Reference in a new issue