workflows: Fix permissions for release-sources job (#100750)
authorTom Stellard <tstellar@redhat.com>
Wed, 7 Aug 2024 21:19:22 +0000 (14:19 -0700)
committerTobias Hieta <tobias@hieta.se>
Sat, 10 Aug 2024 10:29:39 +0000 (12:29 +0200)
commiteea8e4ddd8206a5b04a7c7217e76a48ea2ff386b
tree44d86dcd0717722d9c7668e1423320d804a4dc1c
parentb2de37237c9ad0b3efafb101c23b075445a6c4ef
workflows: Fix permissions for release-sources job (#100750)

For reusable workflows, the called workflow cannot upgrade it's
permissions, and since the default permission is none, we need to
explicitly declare 'contents: read' when calling the release-sources
workflow.

Fixes the error:
The workflow is requesting 'contents: read', but is only allowed
'contents: none'.

(cherry picked from commit 82c2259aeb87f5cb418decfb6a1961287055e5d2)
.github/workflows/release-tasks.yml