File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,11 @@ jobs:
135135 with :
136136 go-version : ${{ env.GO_VERSION }}
137137
138+ - name : Install gosec
139+ run : go install github.com/securego/gosec/v2/cmd/gosec@latest
140+
138141 - name : Run gosec security scanner
139- uses : securecodewarrior/github-action-gosec@master
140- with :
141- args : ' -fmt sarif -out gosec.sarif ./...'
142+ run : gosec -fmt sarif -out gosec.sarif ./...
142143
143144 - name : Upload gosec results
144145 uses : github/codeql-action/upload-sarif@v3
Original file line number Diff line number Diff line change 11package keep
22
3+ import future.keywords.if
4+
35default decision := " deny"
46
57decision := " allow" if {
@@ -27,9 +29,7 @@ decision := "deny" if {
2729 input.device.posture == " unregistered"
2830}
2931
30- allow if {
31- decision == " allow"
32- }
32+ allow if decision == " allow"
3333
3434valid_user if {
3535 input.user.email != " "
Original file line number Diff line number Diff line change 11package keep_test
22
3+ import future.keywords.if
4+
35test_allow_healthy_device if {
46 input := {
57 " user" : {" email" : " alice@example.com" },
You can’t perform that action at this time.
0 commit comments