CodexBloom - Programming Q&A Platform

GitHub Actions not triggering on pull request from forked repository despite correct settings

👀 Views: 70 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-17
github github-actions ci YAML

I've been banging my head against this for hours. I've hit a wall trying to I've tried everything I can think of but I'm trying to set up a GitHub Action workflow that should trigger on pull requests coming from forked repositories..... However, it seems like the workflow is not firing at all. I've made sure that my `pull_request` event is correctly defined in the workflow YAML file: ```yaml name: CI on: pull_request: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Run tests run: npm test ``` I also checked the repository settings and confirmed that the option `Allow GitHub Actions to be run from forked repositories` is enabled. However, I still don't see any actions being triggered when I open a pull request from a fork. The only way I can manually trigger the action is by making a commit directly to the main repo. I've also verified that there are no syntax errors in the workflow file, and it is located in the `.github/workflows/` directory. Here's an example of the pull request I opened from my fork: `https://github.com/username/repo/pull/1`. I'm not seeing any output or logs in the Actions tab of the main repository. Is there something I'm missing regarding permissions or settings for actions to work with forked repositories? Any help would be appreciated! This is for a service running on Windows 11. Has anyone else encountered this? I'm working with Yaml in a Docker container on Ubuntu 22.04. I'm open to any suggestions. This is for a application running on Debian.