@@ -70,17 +70,14 @@ func main() {
7070 }
7171 currentBranch = string (out )
7272 }
73- slog .Info ("Current branch: " + currentBranch )
73+ slog .Info ("Current branch: " + currentBranch ) //nolint:gosec // log message from trusted CI environment variables
7474
7575 cmd := exec .Command ("govulncheck" , "./..." )
7676 out , _ := cmd .Output ()
7777
7878 vulnMessage := string (out )
7979 fmt .Println (vulnMessage )
80- noVuln := false
81- if ! strings .Contains (vulnMessage , "Vulnerability #" ) {
82- noVuln = true
83- }
80+ noVuln := ! strings .Contains (vulnMessage , "Vulnerability #" )
8481
8582 if currentBranch == "" {
8683 if strings .Contains (vulnMessage , "Vulnerability #" ) {
@@ -138,9 +135,9 @@ func main() {
138135}
139136
140137func createIssue (baseURL , token , projectID string , title , commentBody string ) {
141- slog .Info ("Active issue with title '" + title + "' not found in project " + projectID )
138+ slog .Info ("Active issue with title '" + title + "' not found in project " + projectID ) //nolint:gosec // log message from trusted CI environment variables
142139 // Create the issue here
143- issueData := map [string ]interface {} {
140+ issueData := map [string ]any {
144141 "title" : title ,
145142 "description" : commentBody ,
146143 "labels" : "bot,critical" ,
@@ -188,7 +185,7 @@ func closeTheIssue(baseURL, token, projectID string, issueIID int, commentBody s
188185 addCommentToIssue (baseURL , token , projectID , issueIID , commentBody )
189186
190187 client := & http.Client {}
191- issueData := map [string ]interface {} {
188+ issueData := map [string ]any {
192189 "state_event" : "close" ,
193190 }
194191 issueDataBytes , err := json .Marshal (issueData )
@@ -230,7 +227,7 @@ func closeTheIssue(baseURL, token, projectID string, issueIID int, commentBody s
230227
231228func addCommentToIssue (baseURL , token , projectID string , issueIID int , commentBody string ) {
232229 client := & http.Client {}
233- noteData := map [string ]interface {} {
230+ noteData := map [string ]any {
234231 "body" : commentBody ,
235232 }
236233 noteDataBytes , err := json .Marshal (noteData )
0 commit comments