Avoid deprecated `ioutil` temporary file helpers
Go code should use `os.CreateTemp` and `os.MkdirTemp` instead of the deprecated `ioutil.TempFile` / `ioutil.TempDir` helpers.
#Metadata
#Why it matters
The `ioutil` temp helpers are deprecated and frequently appear alongside race-prone temp-file patterns; the `os` replacements receive ongoing security fixes.
#Remediation
Switch to `os.CreateTemp(dir, pattern)` or `os.MkdirTemp(dir, pattern)` and ensure the pattern includes a `*` so a random component is generated.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/go/go.security.insecure-temp-file.rule.yaml.