Skip to content

Commit 4ca19a3

Browse files
authored
Merge pull request #3383 from ably/worktree-fixup-workflows
ci: GHA workflow security cleanup
2 parents ca1ec69 + ca300de commit 4ca19a3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/review-app.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
types: [labeled, unlabeled, closed]
66

7+
permissions: {}
8+
79
jobs:
810
manage-review-app:
911
runs-on: ubuntu-latest
@@ -17,11 +19,13 @@ jobs:
1719
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'review-app'))
1820
steps:
1921
- name: Checkout code
20-
uses: actions/checkout@v4
22+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
23+
with:
24+
persist-credentials: false
2125

2226
- name: Check if user is an Ably organization member
2327
if: github.event.action == 'labeled' && github.event.label.name == 'review-app'
24-
uses: actions/github-script@v7
28+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2529
with:
2630
github-token: ${{ secrets.ABLY_ORG_TOKEN }}
2731
script: |
@@ -56,7 +60,7 @@ jobs:
5660
}
5761
5862
- name: Manage Heroku Review App
59-
uses: fastruby/manage-heroku-review-app@v1.3
63+
uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3
6064
with:
6165
action: ${{ (github.event.action == 'labeled' && github.event.label.name == 'review-app' && 'create') || 'destroy' }}
6266
env:

0 commit comments

Comments
 (0)