Skip to content

Commit 046611c

Browse files
authored
Merge branch 'main' into appearance-prefs
2 parents 188dbb1 + b428b0f commit 046611c

File tree

131 files changed

+2572
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+2572
-172
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ CMD ["/bin/s6-svscan", "/etc/s6"]
6666
COPY docker/root /
6767
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
6868
COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
69+
RUN chmod 755 /usr/bin/entrypoint /app/gitea/gitea /usr/local/bin/environment-to-ini
70+
RUN chmod 755 /etc/s6/gitea/* /etc/s6/openssh/* /etc/s6/.s6-svscan/*
6971
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea

Dockerfile.rootless

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV GOPROXY ${GOPROXY:-direct}
99
ARG GITEA_VERSION
1010
ARG TAGS="sqlite sqlite_unlock_notify"
1111
ENV TAGS "bindata timetzdata $TAGS"
12-
ARG CGO_EXTRA_CFLAGS
12+
ARG CGO_EXTRA_CFLAGS
1313

1414
#Build deps
1515
RUN apk --no-cache add build-base git nodejs npm
@@ -55,6 +55,7 @@ RUN chown git:git /var/lib/gitea /etc/gitea
5555
COPY docker/rootless /
5656
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea
5757
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
58+
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh /app/gitea/gitea /usr/local/bin/environment-to-ini /usr/local/bin/docker-setup.sh
5859

5960
#git:git
6061
USER 1000:1000

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ require (
5353
github.com/gogs/go-gogs-client v0.0.0-20210131175652-1d7215cd8d85
5454
github.com/golang-jwt/jwt v3.2.2+incompatible
5555
github.com/golang/snappy v0.0.4 // indirect
56-
github.com/google/go-github/v37 v37.0.0
57-
github.com/google/go-querystring v1.1.0 // indirect
56+
github.com/google/go-github/v39 v39.2.0
5857
github.com/google/uuid v1.2.0
5958
github.com/gorilla/context v1.1.1
6059
github.com/gorilla/feeds v1.1.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
562562
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
563563
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
564564
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
565-
github.com/google/go-github/v37 v37.0.0 h1:rCspN8/6kB1BAJWZfuafvHhyfIo5fkAulaP/3bOQ/tM=
566-
github.com/google/go-github/v37 v37.0.0/go.mod h1:LM7in3NmXDrX58GbEHy7FtNLbI2JijX93RnMKvWG3m4=
565+
github.com/google/go-github/v39 v39.2.0 h1:rNNM311XtPOz5rDdsJXAp2o8F67X9FnROXTvto3aSnQ=
566+
github.com/google/go-github/v39 v39.2.0/go.mod h1:C1s8C5aCC9L+JXIYpJM5GYytdX52vC1bLvHEF1IhBrE=
567567
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
568568
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
569569
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=

modules/migrations/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package migrations
88
import (
99
"errors"
1010

11-
"github.com/google/go-github/v37/github"
11+
"github.com/google/go-github/v39/github"
1212
)
1313

1414
var (

modules/migrations/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"code.gitea.io/gitea/modules/structs"
2424
"code.gitea.io/gitea/modules/util"
2525

26-
"github.com/google/go-github/v37/github"
26+
"github.com/google/go-github/v39/github"
2727
"golang.org/x/oauth2"
2828
)
2929

routers/private/serv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func ServCommand(ctx *context.PrivateContext) {
283283
(mode > models.AccessModeRead ||
284284
repo.IsPrivate ||
285285
owner.Visibility.IsPrivate() ||
286-
user.IsRestricted ||
286+
(user != nil && user.IsRestricted) || // user will be nil if the key is a deploykey
287287
setting.Service.RequireSignInView) {
288288
if key.Type == models.KeyTypeDeploy {
289289
if deployKey.Mode < mode {

vendor/github.com/google/go-github/v37/AUTHORS renamed to vendor/github.com/google/go-github/v39/AUTHORS

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/go-github/v37/github/actions_runner_groups.go renamed to vendor/github.com/google/go-github/v39/github/actions_runner_groups.go

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/go-github/v37/github/actions_runners.go renamed to vendor/github.com/google/go-github/v39/github/actions_runners.go

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/go-github/v37/github/actions_secrets.go renamed to vendor/github.com/google/go-github/v39/github/actions_secrets.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/go-github/v37/github/actions_workflow_jobs.go renamed to vendor/github.com/google/go-github/v39/github/actions_workflow_jobs.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)