ci: validate user before creating tag

we need to validate create tag action
so that only authorized users can trigger
that action.

[skip-ci]

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai committed 2021-08-12 20:56:31 +05:30
1 parent 3d68f7e58a
commit 4233bb681e
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ defaults:
jobs:
Create-Tag:
runs-on: ubuntu-18.04
if: github.repository == 'rook/rook'
if: github.repository == 'rook/rook' && contains(secrets.RELEASE_ADMINS, github.actor)
steps:
- name: checkout
uses: actions/checkout@v2