Fixes the Stargazers workflow so fork pull requests do not fail README link detection when the fork branch is behind main.
remove the shallow origin main refetch that could leave the runner without a merge base
diff the checked-out pull request merge commit against its first parent, which is the base side of the merge
Notes
This keeps the workflow on the pull_request trigger with read-only permissions and persist-credentials: false.
Checklist
Only GitHub links to open-source repos are added
No duplicate links are added
All repos exist and are public
All repos have at least 50 stars
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vavkamil/awesome-bugbounty-tools/pull/118
**Author:** [@vavkamil](https://github.com/vavkamil)
**Created:** 7/7/2026
**Status:** ✅ Merged
**Merged:** 7/7/2026
**Merged by:** [@vavkamil](https://github.com/vavkamil)
**Base:** `main` ← **Head:** `vavkamil/fix-ci`
---
### 📝 Commits (1)
- [`2aef7c1`](https://github.com/vavkamil/awesome-bugbounty-tools/commit/2aef7c1764918cb3f4822230c32f498065316e33) ci: fix fork PR README diff base
### 📊 Changes
**1 file changed** (+2 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `.github/workflows/stargazers.yml` (+2 -6)
</details>
### 📄 Description
# Description
Fixes the Stargazers workflow so fork pull requests do not fail README link detection when the fork branch is behind `main`.
- remove the shallow `origin main` refetch that could leave the runner without a merge base
- diff the checked-out pull request merge commit against its first parent, which is the base side of the merge
## Notes
This keeps the workflow on the `pull_request` trigger with read-only permissions and `persist-credentials: false`.
## Checklist
- [ ] Only GitHub links to open-source repos are added
- [ ] No duplicate links are added
- [ ] All repos exist and are public
- [ ] All repos have at least 50 stars
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vavkamil/awesome-bugbounty-tools/pull/118
Author: @vavkamil
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/7/2026
Merged by: @vavkamil
Base:
main← Head:vavkamil/fix-ci📝 Commits (1)
2aef7c1ci: fix fork PR README diff base📊 Changes
1 file changed (+2 additions, -6 deletions)
View changed files
📝
.github/workflows/stargazers.yml(+2 -6)📄 Description
Description
Fixes the Stargazers workflow so fork pull requests do not fail README link detection when the fork branch is behind
main.origin mainrefetch that could leave the runner without a merge baseNotes
This keeps the workflow on the
pull_requesttrigger with read-only permissions andpersist-credentials: false.Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.