Skip to content

Commit a3937de

Browse files
authored
0.9.1 (#333)
2 parents a9466f1 + f38f01e commit a3937de

File tree

13 files changed

+126
-78
lines changed

13 files changed

+126
-78
lines changed

.github/workflows/codebase.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: codebase-sync
2+
3+
on:
4+
- push
5+
- delete
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
name: Git Repo Sync
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: wangchucheng/[email protected]
16+
with:
17+
# Such as https://github.com/wangchucheng/git-repo-sync.git
18+
target-url: https://codebase.helmholtz.cloud/m-team/oidc/mytoken/server.git
19+
# Such as wangchucheng
20+
target-username: gabriel.zachmann
21+
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
22+
target-token: ${{ secrets.CODEBASE_TOKEN }}

.gitlab-ci-scripts/goreleaser.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,5 @@ GORELEASER_CONFIG=".goreleaser.yml"
66
if [ -n "$CI_COMMIT_TAG" ] && echo "$CI_COMMIT_TAG" | grep -qv '~'; then
77
GORELEASER_CONFIG=".goreleaser-release.yml"
88
fi
9-
BASEDIR=/go/src/github.com/oidc-mytoken/server
10-
docker run --rm --privileged \
11-
-v "$PWD":"$BASEDIR" \
12-
-w "$BASEDIR" \
13-
-v "${PWD}/../shared":/tmp/shared \
14-
-v /var/run/docker.sock:/var/run/docker.sock \
15-
-e DOCKER_USERNAME -e DOCKER_PASSWORD \
16-
-e GITHUB_TOKEN \
17-
-e GORELEASER_CONFIG \
18-
goreleaser/goreleaser release -f $GORELEASER_CONFIG --release-notes /tmp/shared/release.md
9+
goreleaser release -f $GORELEASER_CONFIG --release-notes ../shared/release.md
1910
ls -l results

.gitlab-ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
include:
2+
- 'https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/-/raw/master/ci-include/github-status-sync.yml'
3+
4+
variables:
5+
UPSTREAM_PROJECT: oidc-mytoken/server
6+
17
image: golang:1.19
28
stages:
39
- build
@@ -58,7 +64,8 @@ build_migratedb:
5864
prerelease:
5965
stage: release
6066
image:
61-
name: docker:stable
67+
name: goreleaser/goreleaser
68+
entrypoint: [ "" ]
6269
services:
6370
- docker:dind
6471
only:
@@ -72,12 +79,15 @@ prerelease:
7279
GIT_DEPTH: 0
7380
REPO_HOST: repo.data.kit.edu
7481
REPO_USER: cicd
82+
DOCKER_REGISTRY: https://index.docker.io/v1/
83+
before_script:
84+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY"
7585
script:
76-
- if [ -z "$CI_COMMIT_TAG" ]; then docker run --rm -v $PWD:/tmp/mytoken -w /tmp/mytoken bitnami/git .gitlab-ci-scripts/set-prerel-version.sh; fi;
86+
- if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi;
7787
- .gitlab-ci-scripts/goreleaser.sh
7888
- .gitlab-ci-scripts/upload.sh
7989
after_script:
80-
- docker run --rm curlimages/curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks
90+
- curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks
8191

8292
deploy-dev:
8393
stage: deploy
@@ -90,4 +100,3 @@ deploy-dev:
90100
- cp $DEPLOYMENT_SSH_KEY /root/.ssh/id_ed25519 && chmod 0600 /root/.ssh/id_ed25519
91101
script:
92102
- ssh mytoken-dev.vm.fedcloud.eu
93-

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@
1212
<!-- ### Dependencies -->
1313
<!-- -->
1414

15+
## mytoken 0.9.1
16+
17+
### Enhancements
18+
19+
- Improfile includes handling in the webitnerface restrictions editor.
20+
21+
### Dependencies
22+
23+
- Bump golang.org/x/oauth2 from 0.15.0 to 0.17.0
24+
- Bump golang.org/x/crypto from 0.17.0 to 0.19.0
25+
- Bump golang.org/x/mod from 0.14.0 to 0.15.0
26+
- Bump github.com/evanphx/json-patch/v5 from 5.7.0 to 5.9.0
27+
- Bump github.com/gofiber/template/mustache/v2 from 2.0.7 to 2.0.8
28+
- Bump github.com/lestrrat-go/jwx from 1.2.27 to 1.2.28
29+
- Bump github.com/gofiber/fiber/v2 from 2.51.0 to 2.52.0
30+
- Bump github.com/redis/go-redis/v9 from 9.3.1 to 9.4.0
31+
- Bump github.com/valyala/fasthttp from 1.51.0 to 1.52.0
32+
- Bump github.com/coreos/go-oidc/v3 from 3.8.0 to 3.9.0
33+
- Bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6
34+
- Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0
35+
- Bump golang.org/x/term from 0.15.0 to 0.17.0
36+
1537
## mytoken 0.9.0
1638

1739
### Changes

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2023 Gabriel Zachmann
3+
Copyright (c) 2020-2024 Gabriel Zachmann
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

go.mod

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,42 @@ go 1.19
44

55
require (
66
github.com/Songmu/prompter v0.5.1
7-
github.com/coreos/go-oidc/v3 v3.8.0
8-
github.com/evanphx/json-patch/v5 v5.7.0
7+
github.com/coreos/go-oidc/v3 v3.9.0
8+
github.com/evanphx/json-patch/v5 v5.9.0
99
github.com/fatih/structs v1.1.0
10-
github.com/gliderlabs/ssh v0.3.5
11-
github.com/go-resty/resty/v2 v2.10.0
10+
github.com/gliderlabs/ssh v0.3.6
11+
github.com/go-resty/resty/v2 v2.11.0
1212
github.com/go-sql-driver/mysql v1.7.1
13-
github.com/gofiber/fiber/v2 v2.51.0
13+
github.com/gofiber/fiber/v2 v2.52.0
1414
github.com/gofiber/helmet/v2 v2.2.26
15-
github.com/gofiber/template/mustache/v2 v2.0.7
15+
github.com/gofiber/template/mustache/v2 v2.0.8
1616
github.com/gofrs/uuid v4.4.0+incompatible
1717
github.com/golang-jwt/jwt v3.2.2+incompatible
1818
github.com/ip2location/ip2location-go v8.3.0+incompatible
1919
github.com/jinzhu/copier v0.4.0
2020
github.com/jmoiron/sqlx v1.3.5
21-
github.com/lestrrat-go/jwx v1.2.27
21+
github.com/lestrrat-go/jwx v1.2.28
2222
github.com/oidc-mytoken/api v0.11.2-0.20230810083726-bf164306e5b2
2323
github.com/oidc-mytoken/lib v0.7.1
2424
github.com/oidc-mytoken/utils v0.1.3-0.20230731143919-ea5b78243e5d
2525
github.com/patrickmn/go-cache v2.1.0+incompatible
2626
github.com/pires/go-proxyproto v0.7.0
2727
github.com/pkg/errors v0.9.1
28-
github.com/redis/go-redis/v9 v9.3.0
28+
github.com/redis/go-redis/v9 v9.4.0
2929
github.com/sirupsen/logrus v1.9.3
3030
github.com/urfave/cli/v2 v2.3.1-0.20211205195634-e8d81738896c
31-
github.com/valyala/fasthttp v1.51.0
32-
github.com/zachmann/go-oidcfed v0.0.0-20230725165112-6d27a1323204
33-
golang.org/x/crypto v0.16.0
34-
golang.org/x/mod v0.14.0
35-
golang.org/x/oauth2 v0.15.0
36-
golang.org/x/term v0.15.0
31+
github.com/valyala/fasthttp v1.52.0
32+
github.com/zachmann/go-oidcfed v0.1.0
33+
golang.org/x/crypto v0.19.0
34+
golang.org/x/mod v0.15.0
35+
golang.org/x/oauth2 v0.17.0
36+
golang.org/x/term v0.17.0
3737
gopkg.in/yaml.v3 v3.0.1
3838
)
3939

4040
require (
4141
github.com/adam-hanna/arrayOperations v1.0.1 // indirect
42-
github.com/andybalholm/brotli v1.0.5 // indirect
42+
github.com/andybalholm/brotli v1.1.0 // indirect
4343
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
4444
github.com/cbroglie/mustache v1.4.0 // indirect
4545
github.com/cespare/xxhash/v2 v2.2.0 // indirect
@@ -51,8 +51,8 @@ require (
5151
github.com/gofiber/template v1.8.2 // indirect
5252
github.com/gofiber/utils v1.1.0 // indirect
5353
github.com/golang/protobuf v1.5.3 // indirect
54-
github.com/google/uuid v1.4.0 // indirect
55-
github.com/klauspost/compress v1.17.0 // indirect
54+
github.com/google/uuid v1.5.0 // indirect
55+
github.com/klauspost/compress v1.17.6 // indirect
5656
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
5757
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
5858
github.com/lestrrat-go/httpcc v1.0.1 // indirect
@@ -67,8 +67,8 @@ require (
6767
github.com/tinylib/msgp v1.1.8 // indirect
6868
github.com/valyala/bytebufferpool v1.0.0 // indirect
6969
github.com/valyala/tcplisten v1.0.0 // indirect
70-
golang.org/x/net v0.19.0 // indirect
71-
golang.org/x/sys v0.15.0 // indirect
70+
golang.org/x/net v0.21.0 // indirect
71+
golang.org/x/sys v0.17.0 // indirect
7272
google.golang.org/appengine v1.6.8 // indirect
7373
google.golang.org/protobuf v1.31.0 // indirect
7474
)

0 commit comments

Comments
 (0)