Skip to content

Commit

Permalink
Merge branch 'master' into docs/sphinx-warns-and-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby authored Aug 17, 2024
2 parents c7a39ce + 9b4eb8f commit d3514a9
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,12 @@ jobs:
safety_check:
runs-on: ubuntu-latest
environment: release
env:
ALLOWED_USER_IDS: ${{ vars.ALLOWED_USER_IDS }}
steps:
- name: "Check if Executing User is Allowed"
id: safety
run: |
USER_ID=${{ github.actor_id }}
ALLOWED_IDS=$(echo $ALLOWED_USER_IDS | tr "," "\n")
if echo "$ALLOWED_IDS" | grep -q -w "$USER_ID"; then
echo "User $USER_ID is allowed to run this workflow."
else
echo "User $USER_ID is not authorized to run this workflow."
exit 1
fi
- name: "Security Check"
uses: pycord-development/[email protected]
with:
whitelisted-github-ids: ${{ vars.ALLOWED_USER_IDS }}
token: ${{ secrets.GITHUB_TOKEN }}

pre_config:
needs: [safety_check]
Expand Down

0 comments on commit d3514a9

Please sign in to comment.