update main.yml

fix potential workflow vulnerability
This commit is contained in:
Raymond Wang 2022-10-22 12:47:16 -07:00
parent 1d9072030e
commit f3f6ddc8ae

View file

@ -6,8 +6,10 @@ name: Deploy Site
on: on:
push: push:
branches: [main] branches: [main]
pull_request: # The below rule invokes when ANY pull request is made to main
branches: [ main ] # This is DANGEROUS and can allow for malicious behavior
# pull_request:
# branches: [main]
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch: