From 9146d7c1163c3dc76d3229df9c2d8881aeeba540 Mon Sep 17 00:00:00 2001 From: Jan-David Wiederstein Date: Fri, 13 Jun 2025 15:24:46 +0000 Subject: [PATCH 1/4] fix README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4fcb0f0..5895b98 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # go-demo + +This is a simple go demo From 272dc432d4be4e801ddbd40a2442200aff30bbd3 Mon Sep 17 00:00:00 2001 From: Jan-David Wiederstein Date: Fri, 13 Jun 2025 15:29:23 +0000 Subject: [PATCH 2/4] adjust ci.yml --- ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ci.yml b/ci.yml index 15c826a..2112db4 100644 --- a/ci.yml +++ b/ci.yml @@ -9,7 +9,6 @@ prepare: /home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go) - name: install dependencies command: make tidy - - command: go install github.com/a-h/templ/cmd/templ@latest test: steps: - command: which go &> /dev/null || (ln -s @@ -18,9 +17,7 @@ test: run: go-service: steps: - - command: which go &> /dev/null || (ln -s - /home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go) - - command: make run + - command: ./go-demo plan: 8 replicas: 1 isPublic: true From 19c4c38eca7f99c17b156ce56ad8b30a1c1dca26 Mon Sep 17 00:00:00 2001 From: Jan-David Wiederstein <141321444+Datata1@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:32:08 +0200 Subject: [PATCH 3/4] Update gosec.yml --- .github/workflows/gosec.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 4232ba2..264ded3 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -3,10 +3,10 @@ on: workflow_dispatch: pull_request: types: - - closed - - opened - - reopened - - synchronize + - closed + - opened + - reopened + - synchronize jobs: tests: runs-on: ubuntu-latest @@ -14,8 +14,14 @@ jobs: GO111MODULE: on steps: - name: Checkout Source - uses: actions/checkout@v3 - - name: Run Gosec Security Scanner - uses: securego/gosec@master + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 with: - args: ./... + go-version: '1.24.4' + + - name: Run Gosec Security Scanner + run: | + go install github.com/securego/gosec/v2/cmd/gosec@latest + gosec -exclude-dir=.codesphere-internal ./... From cceeb892f6c736a53edd44dda8f8cb1a9c87c9d8 Mon Sep 17 00:00:00 2001 From: Jan-David Wiederstein Date: Fri, 13 Jun 2025 15:35:54 +0000 Subject: [PATCH 4/4] change ci.yml --- ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci.yml b/ci.yml index 2112db4..9c04a75 100644 --- a/ci.yml +++ b/ci.yml @@ -9,6 +9,7 @@ prepare: /home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go) - name: install dependencies command: make tidy + - command: go build test: steps: - command: which go &> /dev/null || (ln -s