Skip to content

Commit

Permalink
Resolve gosec warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
  • Loading branch information
dhaiducek committed Feb 14, 2024
1 parent 686b679 commit e359e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
- name: E2E Tests
run: |
kubectl get pod -A
export GOPATH=$(go env GOPATH)
KUBECONFIG=${PWD}/kubeconfig_managed make e2e-test-coverage
Expand Down Expand Up @@ -100,6 +99,7 @@ jobs:
run: |
make test-coverage
make coverage-verify
make gosec-scan
- name: Debug
if: ${{ failure() }}
Expand Down
1 change: 1 addition & 0 deletions controllers/operatorpolicy_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ func opGroupTooManyObjs(opGroups []unstructured.Unstructured) []policyv1.Related
objs := make([]policyv1.RelatedObject, len(opGroups))

for i, opGroup := range opGroups {
opGroup := opGroup
objs[i] = policyv1.RelatedObject{
Object: policyv1.ObjectResourceFromObj(&opGroup),
Compliant: string(policyv1.NonCompliant),
Expand Down

0 comments on commit e359e46

Please sign in to comment.