Pull requests on a self-hosted runner
Pull request builds run on the team's own machine.
On a public repository, anyone can open a pull request, and this workflow runs it on a self-hosted runner. Unless the runner is wiped after every job, the pull request's code can leave something behind for later jobs, and it can reach whatever the machine can reach.
# Runs pull request builds on the team's own build machine.name: CI on: pull_request: permissions: contents: read jobs: build: runs-on: [self-hosted, linux] steps: - uses: actions/checkout@v4 with: persist-credentials: false - run: make test