github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/scanners/azure/functions/reference.go (about)

     1  package functions
     2  
     3  import "fmt"
     4  
     5  // Reference function can't work as per Azure because it requires Azure ARM logic
     6  // best effort is to return the resourcename with a suffix to try and make it unique
     7  func Reference(args ...interface{}) interface{} {
     8  	if len(args) < 1 {
     9  		return nil
    10  	}
    11  	return fmt.Sprintf("%v-reference", args[0])
    12  }