Skip to content

Commit d699d5f

Browse files
authored
update gha file to mitigate Fork Network Manipulation vuln
1 parent 6738a18 commit d699d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
needs: changes
6565
if: ${{ contains(fromJSON(needs.changes.outputs.paths), 'src') }}
66-
environment: ${{ github.event.pull_request.head.repo.fork == true && 'prod-external' || 'prod' }}
66+
environment: ${{ (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) && 'prod-external' || 'prod' }}
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.github_token }}
6969
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

0 commit comments

Comments
 (0)