Skip to content

JamesJonesConsulting/github.bash-in-ssh-agent.action

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

7 Commits
 
 
 
 
 
 

Repository files navigation

Bash Shell wrapped in SSH-Agent Action

A GitHub action that wraps a bash shell in a ssh-agent session with a provided base64 encoded key and optional passphrase.

Usage

on: pull_request
name: bash ssh-agent action
jobs:
  mybashystuff:
    name: bash ssh-agent action on pr
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: bash ssh-agent action on pr
      uses: JamesJonesConsulting/github.bash-in-ssh-agent.action.git@main
      with:
        encoded-key: ${{ secrets.someprivatekeyencodedbase64 }}
        run: |
          echo "whatever you need to run inside a ssh-agent... like ansible-playbook perhaps"

To Do

This is a very early but functional iteration.

About

Github action to wrap a bash shell in a ssh-agent session performing a ssh-add on a base64 encoded ssh key

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published