GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeurs/secrets-replace

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
node_modules
node_modules
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

secrets-replace

This action replaces values preceded by SECRET_ in a given file. This is useful for replacing github secrets in an .env file.

Inputs

file

Required The .env (or other) file where some values begin with SECRET_

Example .env file:
DB_PWD=SECRET_DB_PASSWORD
SAMPLE_KEY=SECRET_SAMPLE_KEY

Avoid names that are an extention of another name. E.g.: SECRET_BASE and SECRET_BASE_EXT

secrets

Required A JSON object containing the keys (without the SECRET_ prefix) and values that should be replaced if found within the file.

Example json file:
{
  "DB_PASSWORD": "12345SecurePassword!",
  "SAMPLE_KEY": "mySecretKey123abc"
}

Example

- name: Replace secrets in .env
  uses: codeurs/secrets-replace@v6
  with:
    file: "path/to/.env"
    secrets: ${{ toJson(secrets) }}

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.