diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b09cc4..874c962 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v4 with: - go-version: v1.22 + go-version-file: './go.mod' - name: Linting and formatting run: | go mod tidy diff --git a/.github/workflows/goreleaser-workflow.yml b/.github/workflows/goreleaser-workflow.yml index a733635..11ead6a 100644 --- a/.github/workflows/goreleaser-workflow.yml +++ b/.github/workflows/goreleaser-workflow.yml @@ -26,7 +26,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v4 with: - go-version: v1.19 + go-version: v1.23 - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Delete non-semver tags diff --git a/go.mod b/go.mod index ae401f0..31729cf 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/oscal-compass/compliance-to-policy-go/v2 -go 1.22.7 - -toolchain go1.22.9 +go 1.23.0 require ( github.com/defenseunicorns/go-oscal v0.6.2 diff --git a/pkg/testdata/go.mod b/pkg/testdata/go.mod new file mode 100644 index 0000000..6e91a97 --- /dev/null +++ b/pkg/testdata/go.mod @@ -0,0 +1,3 @@ +module testdata + +go 1.23