Skip to content

Commit 92c7905

Browse files
authored
feat: Improvements (#26)
- Cli improvements - Update docs
1 parent 4ef3108 commit 92c7905

52 files changed

Lines changed: 4207 additions & 353 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,50 @@ jobs:
5353
with:
5454
working-directory: cli
5555

56+
security:
57+
if: github.repository == 'user-cube/cluster-bootstrap'
58+
name: Security Scan
59+
runs-on: ubuntu-latest
60+
defaults:
61+
run:
62+
working-directory: cli
63+
steps:
64+
- uses: actions/checkout@v6
65+
66+
- uses: actions/setup-go@v6
67+
with:
68+
go-version-file: cli/go.mod
69+
cache-dependency-path: cli/go.sum
70+
71+
- name: Download Go dependencies
72+
run: go mod download
73+
74+
- name: Install gosec
75+
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
76+
77+
- name: Run gosec
78+
run: gosec -exclude-dir=vendor ./...
79+
80+
- name: Run Trivy vulnerability scanner
81+
uses: aquasecurity/trivy-action@master
82+
with:
83+
scan-type: fs
84+
scan-ref: cli
85+
exit-code: 1
86+
severity: HIGH,CRITICAL
87+
88+
gitleaks:
89+
name: Secret Detection
90+
runs-on: ubuntu-latest
91+
steps:
92+
- uses: actions/checkout@v6
93+
with:
94+
fetch-depth: 0
95+
96+
- uses: gitleaks/gitleaks-action@v2
97+
env:
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99+
56100
helm-lint:
57101
name: Helm Lint
58102
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)