Skip to content

Commit

Permalink
chore: bump go to 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Jones <[email protected]>
  • Loading branch information
bradleyjones committed Oct 4, 2023
1 parent 109548d commit 5d1f77d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'v*'

env:
GO_VERSION: "1.20.x"
GO_VERSION: "1.21.x"

jobs:
wait-for-checks:
Expand All @@ -31,7 +31,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This check name is defined as the github actions job name (in .github/workflows/static-analysis-integration.yaml)
checkName: "Static-Analysis (1.20.x, ubuntu-latest)"
checkName: "Static-Analysis (1.21.x, ubuntu-latest)"
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Check unit, and integration test results
Expand All @@ -40,7 +40,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This check name is defined as the github actions job name (in .github/workflows/static-analysis-integration.yaml)
checkName: "Tests (1.20.x, ubuntu-latest)"
checkName: "Tests (1.21.x, ubuntu-latest)"
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Quality gate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-unit-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
Static-Analysis:
strategy:
matrix:
go-version: ["1.20.x"]
go-version: ["1.21.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
# test the lower bounds of support, and the latest available
go-version: ["1.20.x"]
go-version: ["1.21.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
6 changes: 3 additions & 3 deletions anchore-k8s-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ ignore-not-running: true
polling-interval-seconds: 300

anchore:
# url: $ANCHORE_K8S_INVENTORY_ANCHORE_URL
# user: $ANCHORE_K8S_INVENTORY_ANCHORE_USER
password: $ANCHORE_K8S_INVENTORY_ANCHORE_PASSWORD
url: http://127.0.0.1:8228
user: admin
password: foobar
# http:
# insecure: true
# timeout-seconds: 10
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/anchore/k8s-inventory

go 1.20
go 1.21.0

require (
github.com/adrg/xdg v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/inventory/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

// Compile the regexes used for parsing once so they can be reused without having to recompile
var (
digestRegex = regexp.MustCompile(`@(sha[[:digit:]]{3}:[[:alnum:]]{32,})`)
digestRegex = regexp.MustCompile(`(sha[[:digit:]]{3}:[[:alnum:]]{32,})`)
tagRegex = regexp.MustCompile(`:[\w][\w.-]{0,127}$`)
)

Expand Down

0 comments on commit 5d1f77d

Please sign in to comment.