xgqfrms / GitHub-Actions-All-in-One

GitHub Actions All in One
MIT License
1 stars 0 forks source link

GitHub Secrets #4

Open xgqfrms opened 3 years ago

xgqfrms commented 3 years ago

GitHub Secrets

https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets

https://github.com/xgqfrms/GitHub-Actions-All-in-One/settings/secrets/actions/new

xgqfrms commented 3 years ago

image

xgqfrms commented 3 years ago

https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#naming-your-secrets

image

ACCESS_TOKEN 1234567890

xgqfrms commented 3 years ago

image

xgqfrms commented 3 years ago

https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow

steps:
  - name: Hello world action
    with: # Set the secret as an input
      super_secret: ${{ secrets.SuperSecret }}
    env: # Or as an environment variable
      super_secret: ${{ secrets.SuperSecret }}