update main.yml
fix potential workflow vulnerability
This commit is contained in:
parent
1d9072030e
commit
f3f6ddc8ae
1 changed files with 5 additions and 3 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue