Skip to content

Commit

Permalink
Merge pull request #30 from Crebs/dev-a
Browse files Browse the repository at this point in the history
updated message
  • Loading branch information
Crebs authored Jan 27, 2025
2 parents f40b6c5 + 6da8dcf commit c5c15d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
steps:
- name: Check Write Permission
uses: octokit/[email protected]
id: check_permission
id: check_permissions
with:
route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Debug Permission Response
run: |
echo "Permission raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permission
echo "Permissions raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permissions
run: |
permission=$(echo "${{ fromJson(steps.check_permissions.outputs.data).permission }}")
echo "User ${{ github.actor }} has permissions: $permission"
if [[ "$permission" != "write" && "$permission" != "admin" ]]; then
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed."
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed. Someone from the team needs to rerun this workflow AFTER it has been deemed safe."
exit 1
fi
- name: Checkout
Expand Down Expand Up @@ -59,20 +59,20 @@ jobs:
steps:
- name: Check Write Permission
uses: octokit/[email protected]
id: check_permission
id: check_permissions
with:
route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Debug Permission Response
run: |
echo "Permission raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permission
echo "Permissions raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permissions
run: |
permission=$(echo "${{ fromJson(steps.check_permissions.outputs.data).permission }}")
echo "User ${{ github.actor }} has permissions: $permission"
if [[ "$permission" != "write" && "$permission" != "admin" ]]; then
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed."
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed. Someone from the team needs to rerun this workflow AFTER it has been deemed safe."
exit 1
fi
- name: Checkout
Expand Down

0 comments on commit c5c15d1

Please sign in to comment.