Skip to content

Commit

Permalink
Merge branch 'master' into feat/distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwalach committed Jun 22, 2023
2 parents c977f1f + 4b4c033 commit 716d217
Show file tree
Hide file tree
Showing 127 changed files with 4,262 additions and 1,850 deletions.
2 changes: 0 additions & 2 deletions .docker-home/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:3.18

RUN addgroup -S ory; \
adduser -S ory -G ory -D -H -s /bin/nologin
RUN apk --no-cache --upgrade --latest add ca-certificates
RUN apk --no-cache --upgrade add ca-certificates

COPY hydra /usr/bin/hydra

Expand Down
3 changes: 2 additions & 1 deletion .docker/Dockerfile-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:1.19 AS builder
FROM golang:1.20-alpine3.17 AS builder


WORKDIR /go/src/github.com/ory/hydra

Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile-hsm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.20-alpine3.18 AS builder

WORKDIR /go/src/github.com/ory/hydra

Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
docs
node_modules
.circleci
.docker-home
.github
scripts
sdk/js
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- name: Start service
run: ./test/conformance/start.sh
- name: Run tests
Expand Down Expand Up @@ -80,22 +80,21 @@ jobs:
path: |
internal/httpclient
key: ${{ needs.sdk-generate.outputs.sdk-cache-key }}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.20"
- run: go list -json > go.list
- name: Run nancy
uses: sonatype-nexus-community/[email protected]
with:
nancyVersion: v1.0.42
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
env:
GOGC: 100
with:
args: --timeout 10m0s
version: v1.47.3
skip-go-installation: true
version: v1.53.2
skip-pkg-cache: true
- name: Run go-acc (tests)
run: |
Expand Down Expand Up @@ -124,9 +123,9 @@ jobs:
path: |
internal/httpclient
key: ${{ needs.sdk-generate.outputs.sdk-cache-key }}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- name: Setup HSM libs and packages
run: |
sudo apt install -y softhsm opensc
Expand Down Expand Up @@ -175,9 +174,9 @@ jobs:
docker start cockroach
name: Start CockroachDB
- uses: ory/ci/checkout@master
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- uses: actions/cache@v2
with:
path: ./test/e2e/hydra
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"
- run: make format
- name: Indicate formatting issues
run: git diff HEAD --exit-code --color
6 changes: 3 additions & 3 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.18"
go-version: "1.20"
- uses: actions/setup-node@v2
with:
node-version: "18"
Expand Down
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ linters:
- gosimple
- bodyclose
- staticcheck
# Disabled due to Go 1.19 changes and Go-Swagger incompatibility
# https://github.com/ory/hydra/issues/3227
# - goimports
- goimports
disable:
- ineffassign
- deadcode
Expand Down
2 changes: 2 additions & 0 deletions .grype.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- vulnerability: CVE-2023-2650
2 changes: 1 addition & 1 deletion .schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@
"examples": ["cpu"]
},
"tracing": {
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.555/otelx/config.schema.json"
"$ref": "https://raw.githubusercontent.com/ory/x/v0.0.559/otelx/config.schema.json"
},
"sqa": {
"type": "object",
Expand Down
17 changes: 17 additions & 0 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
"$id": "https://github.com/ory/hydra/.schema/versions.config.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
{
"allOf": [
{
"properties": {
"version": {
"const": "v2.2.0-rc.2"
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/ory/hydra/v2.2.0-rc.2/.schema/config.schema.json"
}
]
},
{
"allOf": [
{
Expand Down
1 change: 1 addition & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CVE-2023-2650
Loading

0 comments on commit 716d217

Please sign in to comment.