Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
settings

GitHub Action

Base64 secret to file

v2

Base64 secret to file

settings

Base64 secret to file

Reads a base64 encoded github secret into a file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Base64 secret to file

uses: davidSchuppa/base64Secret-toFile-action@v2

Learn more about this action in davidSchuppa/base64Secret-toFile-action

Choose a version

base64Secret-toFile-action

This Github action helps reading a base64 encoded file, decode it and puts it on the defined path. If the directory doesn't exists, it creates it.

Simple example

steps:
  - name: Action 1
    uses: ...

  - name: Action 2
    run: ...

  - name: Decode secret
    uses: davidSchuppa/base64Secret-toFile-action@v1
    with:
        secret: ${{ secrets.MY_AWESOME_SECRET_KEY }}
        filename: myFile.txt
        destination-path: ~/dirForMyFile