Skip to content

Commit

Permalink
Replace pull_request_target with pull_request in GitHub Actions workf…
Browse files Browse the repository at this point in the history
…lows
  • Loading branch information
stacklok-cloud[bot] committed Nov 11, 2024
1 parent 53f4f1c commit 659151b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/array.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
on:
- pull_request_target
- push
8 changes: 3 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ on:
branches: ["main"]
schedule:
- cron: '22 15 * * 1'
pull_request_target:
branches: ["main"]
jobs:
analyze:
name: Analyze
Expand Down Expand Up @@ -59,16 +57,16 @@ jobs:
# If this step fails, then you should remove it and run the build manually (see below)
- name: Build
run: make build
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3
with:
category: "/language:${{matrix.language}}"
3 changes: 0 additions & 3 deletions .github/workflows/object.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
pull_request_target:
branches:
- main
push:
branches:
- main
3 changes: 1 addition & 2 deletions .github/workflows/only_array.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
on:
- pull_request_target
on: workflow_dispatch
5 changes: 1 addition & 4 deletions .github/workflows/only_object.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
on:
pull_request_target:
branches:
- main
on: workflow_dispatch
3 changes: 1 addition & 2 deletions .github/workflows/string.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
on:
pull_request_target
on: workflow_dispatch

0 comments on commit 659151b

Please sign in to comment.