Test for Secrets Access #7
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
name: Test for Secrets Access | |
description: Test for secrets access. NEVER run this with a secret other than the "TEST_REPOSITORY_SECRET" | |
on: | |
workflow_dispatch: | |
env: | |
TEST_SECRET: ${{ secrets.TEST_REPOSITORY_SECRET }} | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
actions: read | |
jobs: | |
test-for-secret-access: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test for Secret Access | |
run: | | |
echo "Secret is: $(cat ${{ secrets.TEST_REPOSITORY_SECRET }})" | |