Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ on:
workflow_dispatch:
pull_request:
types:
- closed
- opened
- reopened
- synchronize
- closed
- opened
- reopened
- synchronize
jobs:
tests:
runs-on: ubuntu-latest
env:
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 ./...
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# go-demo

This is a simple go demo
6 changes: 2 additions & 4 deletions ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down