mirror of
https://github.com/securego/gosec.git
synced 2025-11-27 22:28:20 +02:00
Add support for go version 1.25.0
Change-Id: Ia694411be7e861177970485cc6185af5a6944686 Signed-off-by: Cosmin Cojocar <ccojocar@google.com>
This commit is contained in:
committed by
Cosmin Cojocar
parent
ef7adab98c
commit
c9453023c4
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -10,7 +10,11 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [{go-version: '1.23.12', golangci: 'latest'}, {go-version: '1.24.6', golangci: 'latest'}]
|
version:
|
||||||
|
- go-version: '1.24.6'
|
||||||
|
golangci: 'latest'
|
||||||
|
- go-version: '1.25.0'
|
||||||
|
golangci: 'latest'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
@@ -48,7 +52,7 @@ jobs:
|
|||||||
- name: Setup go
|
- name: Setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.24.6'
|
go-version: '1.25.0'
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -17,11 +17,11 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.24.6'
|
go-version: '1.25.0'
|
||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
uses: sigstore/cosign-installer@v3
|
uses: sigstore/cosign-installer@v3
|
||||||
with:
|
with:
|
||||||
cosign-release: 'v2.5.0'
|
cosign-release: 'v2.5.3'
|
||||||
- name: Store Cosign private key in a file
|
- name: Store Cosign private key in a file
|
||||||
run: 'echo "$COSIGN_KEY" > /tmp/cosign.key'
|
run: 'echo "$COSIGN_KEY" > /tmp/cosign.key'
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
tags: ${{steps.meta.outputs.tags}}
|
tags: ${{steps.meta.outputs.tags}}
|
||||||
labels: ${{steps.meta.outputs.labels}}
|
labels: ${{steps.meta.outputs.labels}}
|
||||||
push: true
|
push: true
|
||||||
build-args: GO_VERSION=1.24
|
build-args: GO_VERSION=1.25
|
||||||
- name: Sign Docker Image
|
- name: Sign Docker Image
|
||||||
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD"
|
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD"
|
||||||
env:
|
env:
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -17,7 +17,7 @@ GOSEC ?= $(GOBIN)/gosec
|
|||||||
GINKGO ?= $(GOBIN)/ginkgo
|
GINKGO ?= $(GOBIN)/ginkgo
|
||||||
GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
|
GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
|
||||||
GOVULN_MIN_VERSION = 17
|
GOVULN_MIN_VERSION = 17
|
||||||
GO_VERSION = 1.24
|
GO_VERSION = 1.25
|
||||||
LDFLAGS = -ldflags "\
|
LDFLAGS = -ldflags "\
|
||||||
-X 'main.Version=$(shell git describe --tags --always)' \
|
-X 'main.Version=$(shell git describe --tags --always)' \
|
||||||
-X 'main.GitTag=$(shell git describe --tags --abbrev=0)' \
|
-X 'main.GitTag=$(shell git describe --tags --abbrev=0)' \
|
||||||
|
|||||||
Reference in New Issue
Block a user