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

@ -5,9 +5,11 @@ name: Deploy Site
# Controls when the workflow will run # Controls when the workflow will run
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: