Skip to content

Commit e733fee

Browse files
committed
fix: simplify checkout behavior after changing trigger
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
1 parent 0943fab commit e733fee

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ on:
99
# Run weekly on Monday at 07:25 UTC
1010
- cron: "25 7 * * 1"
1111

12-
# For pull_request_target events, check out the fork's code.
13-
# Falls back to the current repository/ref for push and schedule events.
14-
env:
15-
REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.ref || github.ref }}
16-
REPO: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
17-
1812
# Top-level permissions: restrict to read-only by default.
1913
permissions:
2014
contents: read
@@ -46,9 +40,6 @@ jobs:
4640
steps:
4741
- name: Checkout repository
4842
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
49-
with:
50-
repository: ${{ env.REPO }}
51-
ref: ${{ env.REF }}
5243

5344
- name: Initialize CodeQL
5445
uses: github/codeql-action/init@45580472a5bb82c4681c4ac726cfdb60060c2ee1 # v3

0 commit comments

Comments
 (0)