Skip to content

Action to import Environment secrets and import as environment inside actions

Notifications You must be signed in to change notification settings

Pablommr/import-secrets

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 =).

About

Action to import Environment secrets and import as environment inside actions

Resources

Stars

Watchers

Forks

Packages

No packages published