Skip to content

Commit a95541c

Browse files
committed
Switch permission check action
1 parent 81aaece commit a95541c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci_linux.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
image: "ghcr.io/rust-gpu/rust-cuda-rockylinux9-cuda12:latest"
4141
outputs:
4242
# Output the result of the permission check
43-
actor_has_write_permission: ${{ steps.permission_check.outputs.has-permission }}
43+
actor_has_write_permission: ${{ steps.check_access.outputs.require-result }}
4444
# Output the buile artifact details so the test job can use them
4545
artifact_name: ${{ steps.artifact_details.outputs.name }}
4646
artifact_path: ${{ steps.artifact_details.outputs.path }}
@@ -49,11 +49,12 @@ jobs:
4949
- name: Checkout repository
5050
uses: actions/checkout@v4
5151

52-
- name: Check if triggering actor has write permission
53-
id: permission_check
54-
uses: scherermichael-oss/action-has-permission@17f29510f1bf987b916c8cbb451566a56eed23f1
52+
- name: Check access permissions
53+
id: check_access
54+
uses: actions-cool/check-user-permission@v2
5555
with:
56-
required-permission: write
56+
require: write
57+
username: ${{ github.triggering_actor }}
5758
env:
5859
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5960

0 commit comments

Comments
 (0)