Skip to content

Commit

Permalink
ci: use pull_request_target for vercel-pull-request
Browse files Browse the repository at this point in the history
Use `types: [labeled]` to mitigate the risk of running untrusted code.
  • Loading branch information
schettn committed Oct 10, 2024
1 parent 08163e5 commit 2db84fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/acceptance.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/vercel-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# vercel-pull-request.yml
name: Create vercel preview URL on pull request
on:
workflow_run:
workflows:
- acceptance
types:
- completed
pull_request_target:
types: [labeled]
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand Down

1 comment on commit 2db84fe

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for pylon-docs ready!

✅ Preview
https://pylon-docs-qutawfxc2-schettns-projects.vercel.app

Built with commit 2db84fe.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.