Skip to content

Commit

Permalink
Merge branch 'main' into fix/convert-json-to-markdown-scorecard-verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
noamd-legit authored Nov 16, 2023
2 parents 499d8a6 + 5f9e182 commit b272b7d
Show file tree
Hide file tree
Showing 15 changed files with 272 additions and 239 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ jobs:
run: go test -count=1 -shuffle=on -timeout=10m -race $(go list ./... | grep -vE '^github.com/Legit-Labs/legitify/e2e')
- name: Vet
run: go vet -v ./...
check_rego:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: open-policy-agent/setup-opa@9501844990f7dcfd09b17a8d97c794d294620f37 # v2.1.0
with:
version: v0.55.0
- uses: styrainc/setup-regal@94ad2891f53efdb7ebe7c6836bc25ecc9504aec1 # v0.2.0
with:
version: v0.11.0
- run: opa check --strict policies/github
- run: opa check --strict policies/gitlab
- run: regal lint --format=github policies
23 changes: 23 additions & 0 deletions .regal/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
rules:
idiomatic:
no-defined-entrypoint:
# OK to ignore for libraries
level: ignore
style:
file-length:
# Override default of 500 as one file has 515 lines
max-file-length: 550
line-length:
# Violations here mostly from metadata annotation values.
# These could be fixed by using |> and newlines, but we'll
# ignore this for now.
level: ignore
opa-fmt:
# Would mostly changes spaces -> tabs. Safe to ignore.
level: ignore
prefer-snake-case:
# Only a few violations here, so this would be easy to fix.
level: ignore
prefer-some-in-iteration:
# This is mostly a style preference, so safe to ignore.
level: ignore
28 changes: 14 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/fatih/color v1.15.0
github.com/gofri/go-github-ratelimit v1.0.4
github.com/gofri/go-github-ratelimit v1.0.5
github.com/golang/mock v1.6.0
github.com/google/go-github/v53 v53.2.0
github.com/google/wire v0.5.0
Expand All @@ -25,16 +25,16 @@ require (
github.com/thedevsaddam/gojsonq/v2 v2.5.2
github.com/vbauerster/mpb/v8 v8.4.0
github.com/xanzy/go-gitlab v0.83.0
golang.org/x/net v0.10.0
golang.org/x/net v0.17.0
golang.org/x/oauth2 v0.8.0
gopkg.in/yaml.v3 v3.0.1
)

require (
cloud.google.com/go v0.109.0 // indirect
cloud.google.com/go/compute v1.18.0 // indirect
cloud.google.com/go v0.110.0 // indirect
cloud.google.com/go/compute v1.19.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.10.0 // indirect
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/CycloneDX/cyclonedx-go v0.7.0 // indirect
Expand All @@ -56,7 +56,7 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/cli v23.0.0-rc.1+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/docker v23.0.0-rc.1+incompatible // indirect
github.com/docker/docker v24.0.7+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
Expand All @@ -78,7 +78,7 @@ require (
github.com/google/osv-scanner v1.2.1-0.20230302232134-592acbc2539b // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
github.com/h2non/filetype v1.1.3 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
Expand Down Expand Up @@ -125,21 +125,21 @@ require (
github.com/yashtewari/glob-intersection v0.1.0 // indirect
go.opencensus.io v0.24.0 // indirect
gocloud.dev v0.29.0 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/term v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.6.0 // indirect
golang.org/x/vuln v0.0.0-20230118164824-4ec8867cc0e6 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.110.0 // indirect
google.golang.org/api v0.114.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230209215440-0dfe4f8abfcc // indirect
google.golang.org/grpc v1.54.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/grpc v1.56.3 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
Loading

0 comments on commit b272b7d

Please sign in to comment.