Skip to content

Instantly share code, notes, and snippets.

@irsl
Last active April 22, 2025 19:15
Show Gist options
  • Save irsl/4129262983792ad961ae74955e14b90e to your computer and use it in GitHub Desktop.
Save irsl/4129262983792ad961ae74955e14b90e to your computer and use it in GitHub Desktop.
jobs:
untrusted:
permissions: {}
steps:
# doing something untrusted
- ...
trusted_post_processing:
needs: untrusted
permissions:
contents: write
# some more privileged permissions
steps:
- uses: actions/download-artifact@v4
with:
# extract all artifacts to this directory
path: /tmp/artifact-directory/
- shell: bash
run: |
# ... at this point this job is already compromised
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment