Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CodeQL

on:
push:
pull_request:
schedule:
- cron: "0 2 * * *"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
release-please:
# TODO(SNOW-1965855): Uncomment after adjusting secrets for release `environment: release`
environment: release
runs-on: macos-latest
steps:
- uses: actions/github-script@v6
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/workflow-rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Workflow rules

on:
pull_request:

jobs:
check_workflows:
name: Check workflows
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for pull_request_target
run: |
if grep -r --exclude="workflow-rules.yml" "pull_request_target" .github/workflows/; then
echo "pull_request_target found in workflow files"
Comment thread
sfc-gh-jmichalak marked this conversation as resolved.
exit 1
else
exit 0
fi