Skip to content

break

break #2

name: Test for Secrets Access PR Target
description: Test for secrets access. NEVER run this with a secret other than the "TEST_REPOSITORY_SECRET"
on:
pull_request_target:
types:
- assigned
- unassigned
- labeled
- unlabeled
- opened
- edited
- reopened
workflow_dispatch:
env:
TEST_SECRET: ${{ secrets.TEST_REPOSITORY_SECRET }}
defaults:
run:
shell: bash
permissions:
contents: read
actions: read
break

Check failure on line 28 in .github/workflows/test-for-secrets-pr-target.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-for-secrets-pr-target.yaml

Invalid workflow file

You have an error in your yaml syntax on line 28
jobs:
pr-target-test:
runs-on: ubuntu-latest
steps:
- name: PR Target Test
run: |
echo "Secret (base64-encoded): $(echo "$TEST_SECRET" | base64)"