Skip to content

Commit

Permalink
Merge pull request #162 from deggja/ci/release
Browse files Browse the repository at this point in the history
ci: release
  • Loading branch information
deggja authored Aug 31, 2024
2 parents 487469e + 8706d17 commit 93e8cf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
cd backend
go mod tidy
# - name: Bump version and tag
# id: bump_version
# run: |
# chmod +x .github/scripts/bump_version.sh
# .github/scripts/bump_version.sh
- name: Bump version and tag
id: bump_version
run: |
chmod +x .github/scripts/bump_version.sh
.github/scripts/bump_version.sh
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
10 changes: 5 additions & 5 deletions backend/pkg/k8s/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ func IsSystemNamespace(namespace string) bool {
func CalculateScore(hasPolicies bool, hasDenyAll bool, unprotectedPodsCount int) int {
score := 50 // Start with a base score of 50

if hasDenyAll {
score += 20 // Add 20 points for having deny-all policies
} else if !hasPolicies {
score -= 20 // Subtract 20 points if there are no policies at all
}
// if hasDenyAll {
// score += 20 // Add 20 points for having deny-all policies
// } else if !hasPolicies {
// score -= 20 // Subtract 20 points if there are no policies at all
// }

// Deduct score based on the number of unprotected pods
score -= unprotectedPodsCount
Expand Down

0 comments on commit 93e8cf6

Please sign in to comment.