We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 787438d + 6619b1e commit df26d62Copy full SHA for df26d62
Dockerfile
@@ -1,5 +1,5 @@
1
# Build stage
2
-FROM docker.io/library/golang:1.24-alpine3.22 AS build-env
+FROM docker.io/library/golang:1.25-alpine3.22 AS build-env
3
4
ARG GOPROXY
5
ENV GOPROXY=${GOPROXY:-direct}
Dockerfile.rootless
Makefile
@@ -23,7 +23,7 @@ SHASUM ?= shasum -a 256
23
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
24
COMMA := ,
25
26
-XGO_VERSION := go-1.24.x
+XGO_VERSION := go-1.25.x
27
28
AIR_PACKAGE ?= github.com/air-verse/air@v1
29
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
flake.lock
flake.nix
@@ -15,41 +15,53 @@
15
with pkgs;
16
let
17
# only bump toolchain versions here
18
- go = go_1_24;
+ go = go_1_25;
19
nodejs = nodejs_24;
20
python3 = python312;
21
+
22
+ # Platform-specific dependencies
+ linuxOnlyInputs = lib.optionals pkgs.stdenv.isLinux [
+ glibc.static
+ ];
+ linuxOnlyEnv = lib.optionalAttrs pkgs.stdenv.isLinux {
+ CFLAGS = "-I${glibc.static.dev}/include";
+ LDFLAGS = "-L ${glibc.static}/lib";
30
+ };
31
in
- pkgs.mkShell {
- buildInputs = [
- # generic
- git
- git-lfs
- gnumake
- gnused
- gnutar
- gzip
32
+ pkgs.mkShell (
33
+ {
34
+ buildInputs = [
35
+ # generic
36
+ git
37
+ git-lfs
38
+ gnumake
39
+ gnused
40
+ gnutar
41
+ gzip
42
- # frontend
- nodejs
43
+ # frontend
44
+ nodejs
45
- # linting
- python3
- uv
46
+ # linting
47
+ python3
48
+ uv
49
- # backend
- go
- glibc.static
- gofumpt
- sqlite
- ];
- CFLAGS = "-I${glibc.static.dev}/include";
- LDFLAGS = "-L ${glibc.static}/lib";
- GO = "${go}/bin/go";
- GOROOT = "${go}/share/go";
50
+ # backend
51
+ go
52
+ gofumpt
53
+ sqlite
54
+ ]
55
+ ++ linuxOnlyInputs;
56
57
+ GO = "${go}/bin/go";
58
+ GOROOT = "${go}/share/go";
59
- TAGS = "sqlite sqlite_unlock_notify";
- STATIC = "true";
- };
60
+ TAGS = "sqlite sqlite_unlock_notify";
61
+ STATIC = "true";
62
+ }
63
+ // linuxOnlyEnv
64
+ );
65
}
66
);
67
options/locale/locale_zh-CN.ini
services/actions/auth.go
@@ -53,7 +53,7 @@ func CreateAuthorizationToken(taskID, runID, jobID int64) (string, error) {
claims := actionsClaims{
RegisteredClaims: jwt.RegisteredClaims{
- ExpiresAt: jwt.NewNumericDate(now.Add(24 * time.Hour)),
+ ExpiresAt: jwt.NewNumericDate(now.Add(1*time.Hour + setting.Actions.EndlessTaskTimeout)),
NotBefore: jwt.NewNumericDate(now),
},
Scp: fmt.Sprintf("Actions.Results:%d:%d", runID, jobID),
services/asymkey/sign.go
@@ -290,16 +290,22 @@ Loop:
290
return false, nil, nil, err
291
292
defer gitRepo.Close()
293
- commit, err := gitRepo.GetCommit(parentCommit)
+ isEmpty, err := gitRepo.IsEmpty()
294
if err != nil {
295
296
297
- if commit.Signature == nil {
298
- return false, nil, nil, &ErrWontSign{parentSigned}
299
- }
300
- verification := ParseCommitWithSignature(ctx, commit)
301
- if !verification.Verified {
302
+ if !isEmpty {
+ commit, err := gitRepo.GetCommit(parentCommit)
+ if err != nil {
+ return false, nil, nil, err
+ if commit.Signature == nil {
303
+ return false, nil, nil, &ErrWontSign{parentSigned}
304
305
+ verification := ParseCommitWithSignature(ctx, commit)
306
+ if !verification.Verified {
307
308
309
310
311
services/lfs/server.go
@@ -114,7 +114,7 @@ func DownloadHandler(ctx *context.Context) {
114
115
116
117
- ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size-fromByte))
+ ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size))
118
ctx.Resp.Header().Set("Access-Control-Expose-Headers", "Content-Range")
119
120
services/migrations/github.go
@@ -354,7 +354,8 @@ func (g *GithubDownloaderV3) convertGithubRelease(ctx context.Context, rel *gith
354
355
// Prevent open redirect
356
if !hasBaseURL(redirectURL, g.baseURL) &&
357
- !hasBaseURL(redirectURL, "https://objects.githubusercontent.com/") {
+ !hasBaseURL(redirectURL, "https://objects.githubusercontent.com/") &&
358
+ !hasBaseURL(redirectURL, "https://release-assets.githubusercontent.com/") {
359
WarnAndNotice("Unexpected AssetURL for assetID[%d] in %s: %s", asset.GetID(), g, redirectURL)
360
361
return io.NopCloser(strings.NewReader(redirectURL)), nil
0 commit comments