Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests | GitHub Security Lab

PHOTO EMBED

Fri May 12 2023 15:06:53 GMT+0000 (Coordinated Universal Time)

Saved by @mybusybeeadmin

    # Only as a temporary fix.
    on:
      pull_request_target:
        types: [labeled]

    jobs:
      build:
        name: Build and test
        runs-on: ubuntu-latest
        if: contains(github.event.pull_request.labels.*.name, 'safe to test')
content_copyCOPY

https://securitylab.github.com/research/github-actions-preventing-pwn-requests/