-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SECENG] Update dependencies and config (#125)
* updated linter, test tool version * updated linter configuration * replace slices.Sort with sort.Slice * updated go deps * replace sort with slices for SortFunc * removed x/exp package
- Loading branch information
Showing
9 changed files
with
170 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ orbs: | |
executors: | ||
go: | ||
docker: | ||
- image: cimg/go:1.20.12 | ||
- image: cimg/go:1.23.1 | ||
environment: | ||
CGO_ENABLED: 0 | ||
|
||
|
@@ -15,7 +15,7 @@ jobs: | |
executor: go | ||
steps: | ||
- checkout | ||
- run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 | ||
- run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3 | ||
- run: golangci-lint run -c .golangci.yml | ||
- run: | ||
name: check go.mod | ||
|
@@ -25,7 +25,7 @@ jobs: | |
executor: go | ||
steps: | ||
- checkout | ||
- run: go install gotest.tools/gotestsum@v1.8.1 | ||
- run: go install gotest.tools/gotestsum@v1.12.0 | ||
- run: mkdir -p /tmp/test-results | ||
- run: CGO_ENABLED=1 gotestsum --junitfile="{{.RESULTS_DIR}}"/results.xml ./... -race -count=1 | ||
- run: | ||
|
@@ -54,56 +54,11 @@ jobs: | |
git tag -a "v0.0.$CIRCLE_BUILD_NUM" -m "Release v0.0.$CIRCLE_BUILD_NUM" | ||
git push origin "v0.0.$CIRCLE_BUILD_NUM" | ||
vulnerability-scan: | ||
executor: go | ||
steps: | ||
- checkout | ||
- run: | ||
name: Setup Scanning | ||
command: | | ||
git config --global url."https://$GITHUB_USER:[email protected]/circleci/".insteadOf "https://github.com/circleci/" | ||
- when: | ||
condition: | ||
or: | ||
- equal: [ main, << pipeline.git.branch >> ] | ||
steps: | ||
- run: | ||
name: Launching Snyk Orb Scanning | ||
command: echo "Running snyk/scan on main; uploading the results" | ||
- run: | ||
name: Cleanup RemoteRepoURL | ||
command: echo 'export REMOTE_REPO_URL="${CIRCLE_REPOSITORY_URL%".git"}"' >> "$BASH_ENV" | ||
- snyk/scan: | ||
organization: "circleci-public" | ||
fail-on-issues: true | ||
severity-threshold: high | ||
monitor-on-build: true | ||
additional-arguments: "--all-projects --remote-repo-url=${REMOTE_REPO_URL} -d" | ||
- unless: | ||
condition: | ||
or: | ||
- equal: [ main, << pipeline.git.branch >> ] | ||
steps: | ||
- run: | ||
name: Launching Snyk Orb Scanning | ||
command: echo "Running snyk/scan on branch; not uploading the results" | ||
- snyk/scan: | ||
organization: "circleci-public" | ||
fail-on-issues: true | ||
severity-threshold: high | ||
monitor-on-build: false | ||
additional-arguments: "--all-projects -d" | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- lint | ||
- test | ||
- vulnerability-scan: | ||
context: org-global-employees | ||
requires: | ||
- lint | ||
- test | ||
- publish: | ||
requires: | ||
- lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,53 @@ | ||
module github.com/CircleCI-Public/circle-policy-agent | ||
|
||
go 1.20 | ||
go 1.23.1 | ||
|
||
require ( | ||
github.com/open-policy-agent/opa v0.54.0 | ||
github.com/pmezard/go-difflib v1.0.0 | ||
github.com/stretchr/testify v1.8.3 | ||
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 | ||
github.com/open-policy-agent/opa v0.70.0 | ||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 | ||
github.com/stretchr/testify v1.10.0 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
gopkg.in/yaml.v3 v3.0.1 | ||
) | ||
|
||
require ( | ||
github.com/OneOfOne/xxhash v1.2.8 // indirect | ||
github.com/agnivade/levenshtein v1.1.1 // indirect | ||
github.com/agnivade/levenshtein v1.2.0 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.3.0 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/dgraph-io/ristretto v1.0.0 // indirect | ||
github.com/dustin/go-humanize v1.0.1 // indirect | ||
github.com/ghodss/yaml v1.0.0 // indirect | ||
github.com/go-ini/ini v1.67.0 // indirect | ||
github.com/go-logr/logr v1.2.4 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/gobwas/glob v0.2.3 // indirect | ||
github.com/golang/glog v1.1.1 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/google/flatbuffers v23.5.26+incompatible // indirect | ||
github.com/gorilla/mux v1.8.0 // indirect | ||
github.com/klauspost/compress v1.16.7 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect | ||
github.com/prometheus/client_golang v1.16.0 // indirect | ||
github.com/prometheus/client_model v0.4.0 // indirect | ||
github.com/prometheus/common v0.44.0 // indirect | ||
github.com/prometheus/procfs v0.11.0 // indirect | ||
github.com/google/flatbuffers v24.3.25+incompatible // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/gorilla/mux v1.8.1 // indirect | ||
github.com/klauspost/compress v1.17.10 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/prometheus/client_golang v1.20.5 // indirect | ||
github.com/prometheus/client_model v0.6.1 // indirect | ||
github.com/prometheus/common v0.61.0 // indirect | ||
github.com/prometheus/procfs v0.15.1 // indirect | ||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect | ||
github.com/sirupsen/logrus v1.9.3 // indirect | ||
github.com/tchap/go-patricia/v2 v2.3.1 // indirect | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
github.com/yashtewari/glob-intersection v0.2.0 // indirect | ||
go.opencensus.io v0.24.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 // indirect | ||
go.opentelemetry.io/otel v1.16.0 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 // indirect | ||
go.opentelemetry.io/otel/metric v1.16.0 // indirect | ||
go.opentelemetry.io/otel/sdk v1.16.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.16.0 // indirect | ||
go.opentelemetry.io/proto/otlp v1.0.0 // indirect | ||
golang.org/x/net v0.12.0 // indirect | ||
golang.org/x/sys v0.10.0 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20230724170836-66ad5b6ff146 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230724170836-66ad5b6ff146 // indirect | ||
google.golang.org/grpc v1.56.2 // indirect | ||
google.golang.org/protobuf v1.31.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 // indirect | ||
go.opentelemetry.io/otel v1.32.0 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 // indirect | ||
go.opentelemetry.io/otel/metric v1.32.0 // indirect | ||
go.opentelemetry.io/otel/sdk v1.32.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.32.0 // indirect | ||
golang.org/x/sys v0.28.0 // indirect | ||
golang.org/x/tools v0.25.0 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240924160255-9d4c2d233b61 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240924160255-9d4c2d233b61 // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
sigs.k8s.io/yaml v1.4.0 // indirect | ||
) |
Oops, something went wrong.