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 ./... 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 diff --git a/ci.yml b/ci.yml index 15c826a..9c04a75 100644 --- a/ci.yml +++ b/ci.yml @@ -9,7 +9,7 @@ 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 + - command: go build test: steps: - command: which go &> /dev/null || (ln -s @@ -18,9 +18,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