Skip to content

Commit 5bebe9d

Browse files
committed
ci: skip dependency graph submission for fork PRs
1 parent 81685a6 commit 5bebe9d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/maven.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88

99
jobs:
1010
build:
11-
11+
permissions:
12+
contents: write
1213
runs-on: ubuntu-latest
1314

1415
steps:
@@ -24,4 +25,5 @@ jobs:
2425

2526
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
2627
- name: Update dependency graph
28+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
2729
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 commit comments

Comments
 (0)