Skip to content

import-secrets

Actions
Action to import Environment secrets and import as environment inside actions
v1.0.0
Latest
Star (2)

import-secrets

Action to export all secrets in "Environment secrets" to environment variables inside actions in all steps in job.


Example

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) }}

Usage

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.

About

Action to import Environment secrets and import as environment inside actions
v1.0.0
Latest

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.