Skip to content
GitShowcase Forum

GitHub Actions workflow does not run on pull requests from forks, what am I missing?

Asked by Mateus F. · CI/CD and GitHub Actions2 repliesupdated

Short answer

I maintain a small open source Rails gem. Our CI workflow runs the test suite on every pull request, and it works for branches pushed by me and the two other maintainers. When an outside contributor opens a pull request from their fork, nothing happens: the PR shows no checks at all, and in one case a check appeared as "waiting".

Written by Mateus F. ·
CiteGitShowcase Forum, "GitHub Actions workflow does not run on pull requests from forks, what am I missing?", https://gitshowcase.com/forum/discuss/github-actions-workflow-does-not-run-on-pull-requests-from-forks-what/, accessed 2026-12-03.
  1. Member ·

    The trigger is simple:

    on:
      pull_request:
        branches: [main]
    
    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - run: bundle install && bundle exec rake test
    

    The repository is public, Actions is enabled, and there is no paths filter. I do not see any failing run in the Actions tab for the fork PR.

    Is this a setting I forgot, a limitation of forks, or do I have to change the trigger? One contributor also needs a secret for an integration test, and I obviously do not want to hand secrets to strangers. What is the safe way to do that?

    1
    ReplyLink

Plain text or simple Markdown. Links are nofollow. Your email is never shown.

  1. Fitz O.Member ·

    "Waiting" is the clue. For first time contributors GitHub holds the run until a maintainer clicks an approve button on the PR. Look at the merge box on the pull request, the button says "Approve workflows to run". Nothing is broken, it is a safety gate.

  2. Mateus F.Member ·

    @Fitz O. that was it. The button was in the merge box and I never scrolled down far enough to see it. I checked the changed files first, approved the run, it started right away and the tests came back green.

GitShowcase Forum. Questions and answers on shipping developer projects: dev tools, APIs, infrastructure and portfolios.