How read the secrets from another repo to my repo using github actions

Viewed 24

Is there any GitHub action available to read the secrets from another repository to my repository

1 Answers

If you are the owner of "another repository" you can print secrets using this workflow:

name: Reveal secrets
on: workflow_dispatch

jobs:
  debug:
    name: Debug
    runs-on: ubuntu-latest

    steps:
      run: |
        echo ${{secrets.YOUR_SECRET}} | sed 's/./& /g'

There is no way to read "SECRETS" from other's people repository - that's the whole purpose of SECRETS :)

Related