Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

ttd2089/secret-file-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secret File Action

⚠️ DEPRECATED: This action is no longer maintained. Use an inline run step instead. Example: alternative.yml.

Description

Write a secret to a local file during a workflow.

Inputs

secret

Required The secret to write to a file.

b64-decode

Required Indicates whether to base64 decode the secret value. Default true.

Outputs

file

The file the secret was written to.

Example usage

steps:

  - name: GPG Key Secret File
    uses: ttd2089/secret-file-action@v1.1
    id: gpg-key-secret
    with:
      secret: ${{ secrets.GPG_KEY }}
      b64-decode: true

  - name: Import GPG Key
    env:
      GPG_KEY_FILE: ${{ steps.gpg-key-secret.outputs.file }}
    run: gpg --batch --import $GPG_KEY_FILE

About

Write a secret to a local file during a workflow

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors