import-secrets
ActionsAction to import Environment secrets and import as environment inside actions
v1.0.0
LatestBy Pablommr
Tags
(2)Action to export all secrets in "Environment secrets" to environment variables inside actions in all steps in job.
name: Build
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Import secrets
uses: Pablommr/[email protected]
env:
ALL_SECRETS: ${{ toJson(secrets) }}
To use this action, you just need set an environment and an env 'ALL_SECRETS' with the value '${{ toJson(secrets) }}'. So then, the secrets will be availible in environment variables inside your action in all steps inside the job =).
import-secrets is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.