workflow: no content permissions for GitHub action 'post-release' (#4579)
workflow: no content permissions for GitHub action 'post-release' (#4579)

Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

See also:
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

NOTE(sr): This is a first step, there are probably more opportunities for restricting permissions
in our workflows.

Signed-off-by: naveensrinivasan <3ee6d032cf0e2168c09d055a780f32b07cd47cf5@users.noreply.github.com>
tsandall/opa,open-policy-agent/opa,open-policy-agent/opa,open-policy-agent/opa,open-policy-agent/opa,tsandall/opa,tsandall/opa,tsandall/opa,open-policy-agent/opa,tsandall/opa,open-policy-agent/opa,tsandall/opa