Last active
April 22, 2025 19:15
-
-
Save irsl/4129262983792ad961ae74955e14b90e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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