Git Product home page Git Product logo

setup-age's Introduction

Setup age for GitHub Actions

Setup age on GitHub Actions to use age.

This action installs age for use in actions by installing it on tool cache using AnimMouse/tool-cache.

This action is implemented as a composite action.

Usage

To use age, run this action before age.

Encrypt file

steps:
  - name: Setup age
    uses: AnimMouse/setup-age@v1
    
  - run: age -r age1heyeacwyv3jts97285vf7ksjczs2ple2fpf5uxghm993332pvv6sa5s8m5 -o file.txt.age file.txt

Decrypt file

Paste your age secret key to AGE_SECRET_KEY secret and use process substitution on the identity input.

steps:
  - name: Setup age
    uses: AnimMouse/setup-age@v1
    
  - run: age -d -i <(echo $AGE_SECRET_KEY) -o file.txt file.txt.age
    env:
      AGE_SECRET_KEY: ${{ secrets.AGE_SECRET_KEY }}

Generate a key pair

steps:
  - name: Setup age
    uses: AnimMouse/setup-age@v1
    
  - run: age-keygen

Specific version

You can specify the version you want. By default, this action downloads the latest version if version is not specified.

steps:
  - name: Setup age
    uses: AnimMouse/setup-age@v1
    with:
      version: v1.1.1

GitHub token

This action automatically uses a GitHub token in order to authenticate with GitHub API and avoid rate limiting. You can also specify your own read-only fine-grained personal access token.

steps:
  - name: Setup age
    uses: AnimMouse/setup-age@v1
    with:
      token: ${{ secrets.GH_PAT }}

Similar actions

  1. alessiodionisi/setup-age-action
  2. jacobsvante/setup-age-action
  3. jacobsvante/age-decrypt-action

setup-age's People

Contributors

animmouse avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.