From f45aa92ca8d5d890de48feb879650c64266d2a88 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 27 Dec 2025 11:18:36 +0100 Subject: [PATCH 1/5] fix: node actions copy to container --- .github/testworkflows/container-matrix.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/testworkflows/container-matrix.yml b/.github/testworkflows/container-matrix.yml index 97e02dd..d0188fe 100644 --- a/.github/testworkflows/container-matrix.yml +++ b/.github/testworkflows/container-matrix.yml @@ -8,4 +8,5 @@ jobs: runs-on: [self-hosted] container: ubuntu:latest steps: - - run: echo Hello World \ No newline at end of file + - uses: actions/checkout@v6 + - run: echo Hello World From faa9e732cd565fd42fdea98a79f05c50fdad513a Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 27 Dec 2025 11:27:02 +0100 Subject: [PATCH 2/5] update tests --- .github/testworkflows/container-matrix.yml | 5 ++++- .github/testworkflows/matrix.yml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/testworkflows/container-matrix.yml b/.github/testworkflows/container-matrix.yml index d0188fe..6942ab5 100644 --- a/.github/testworkflows/container-matrix.yml +++ b/.github/testworkflows/container-matrix.yml @@ -8,5 +8,8 @@ jobs: runs-on: [self-hosted] container: ubuntu:latest steps: - - uses: actions/checkout@v6 + - uses: actions/github-script@v7 + with: + script: | + console.log('Hello from NodeJS Actions in a container!'); - run: echo Hello World diff --git a/.github/testworkflows/matrix.yml b/.github/testworkflows/matrix.yml index 190df2b..a7f6d85 100644 --- a/.github/testworkflows/matrix.yml +++ b/.github/testworkflows/matrix.yml @@ -7,4 +7,8 @@ jobs: test: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] runs-on: [self-hosted] steps: + - uses: actions/github-script@v7 + with: + script: | + console.log('Hello from NodeJS Actions!'); - run: echo Hello World \ No newline at end of file From 4d64c611e0fe691fc9fb7dfbe74906689f8596ef Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 27 Dec 2025 11:20:19 +0100 Subject: [PATCH 3/5] close write end instead of read end of pipe --- actionsdotnetactcompat/action_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionsdotnetactcompat/action_cache.go b/actionsdotnetactcompat/action_cache.go index 75f8bac..735c233 100644 --- a/actionsdotnetactcompat/action_cache.go +++ b/actionsdotnetactcompat/action_cache.go @@ -35,7 +35,7 @@ func (cache *ActionCacheBase) GetTarArchive(ctx context.Context, cacheDir, sha, pr, pw := io.Pipe() cleanIncludePrefix := path.Clean(includePrefix) go func() { - defer func() { _ = pr.Close() }() + defer func() { _ = pw.Close() }() writer := tar.NewWriter(pw) defer func() { _ = writer.Close() }() reader, err := os.Open(cache.mapping[cacheDir+"@"+sha]) From 8c2d683a51bda017660e51f7278459f116a6fcd5 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 27 Dec 2025 11:45:34 +0100 Subject: [PATCH 4/5] use node image for tests --- .github/testworkflows/container-matrix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/testworkflows/container-matrix.yml b/.github/testworkflows/container-matrix.yml index 6942ab5..a49bf1e 100644 --- a/.github/testworkflows/container-matrix.yml +++ b/.github/testworkflows/container-matrix.yml @@ -6,7 +6,7 @@ jobs: matrix: test: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] runs-on: [self-hosted] - container: ubuntu:latest + container: node:latest steps: - uses: actions/github-script@v7 with: From 3f76aef61a679671f12a3b9c0e0ce5b6c4446e19 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 27 Dec 2025 12:05:20 +0100 Subject: [PATCH 5/5] remove token --- .github/testworkflows/container-matrix.yml | 1 + .github/testworkflows/matrix.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/testworkflows/container-matrix.yml b/.github/testworkflows/container-matrix.yml index a49bf1e..de16ad7 100644 --- a/.github/testworkflows/container-matrix.yml +++ b/.github/testworkflows/container-matrix.yml @@ -12,4 +12,5 @@ jobs: with: script: | console.log('Hello from NodeJS Actions in a container!'); + github-token: none - run: echo Hello World diff --git a/.github/testworkflows/matrix.yml b/.github/testworkflows/matrix.yml index a7f6d85..7e76216 100644 --- a/.github/testworkflows/matrix.yml +++ b/.github/testworkflows/matrix.yml @@ -11,4 +11,5 @@ jobs: with: script: | console.log('Hello from NodeJS Actions!'); + github-token: none - run: echo Hello World \ No newline at end of file