Clear Log or any file without removing or deleting it and retaining permissions

There are many other ways to do this, but an easy way to remember is this command:
1 |
cat /dev/null > /the/path/to/file.sh |
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in t…
d612942
fix: package.json to reduce vulnerabilities