mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
commit
5fb792e09f
4 changed files with 45 additions and 31 deletions
49
.github/workflows/build.yml
vendored
49
.github/workflows/build.yml
vendored
|
|
@ -141,28 +141,29 @@ jobs:
|
||||||
env:
|
env:
|
||||||
OTHER_SECRET_OUTPUT: ${{ steps.kv-secrets.outputs.otherSecret }}
|
OTHER_SECRET_OUTPUT: ${{ steps.kv-secrets.outputs.otherSecret }}
|
||||||
|
|
||||||
publish:
|
# Removing publish step for now.
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'master')
|
# publish:
|
||||||
runs-on: ubuntu-latest
|
# if: github.event_name == 'push' && contains(github.ref, 'master')
|
||||||
needs: [build, integration, e2e]
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# needs: [build, integration, e2e]
|
||||||
- uses: actions/checkout@v1
|
# steps:
|
||||||
- uses: actions/setup-node@v1
|
# - uses: actions/checkout@v1
|
||||||
with:
|
# - uses: actions/setup-node@v1
|
||||||
node-version: ''
|
# with:
|
||||||
- name: setup npm cache
|
# node-version: ''
|
||||||
uses: actions/cache@v1
|
# - name: setup npm cache
|
||||||
with:
|
# uses: actions/cache@v1
|
||||||
path: ~/.npm
|
# with:
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
# path: ~/.npm
|
||||||
restore-keys: |
|
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
${{ runner.os }}-node-
|
# restore-keys: |
|
||||||
- name: npm install
|
# ${{ runner.os }}-node-
|
||||||
run: npm ci
|
# - name: npm install
|
||||||
- name: release
|
# run: npm ci
|
||||||
if: success() && endsWith(github.ref, 'master')
|
# - name: release
|
||||||
run: npx semantic-release
|
# if: success() && endsWith(github.ref, 'master')
|
||||||
env:
|
# run: npx semantic-release
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
2
CHANGELOG.md
Normal file
2
CHANGELOG.md
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
17
README.md
17
README.md
|
|
@ -1,4 +1,15 @@
|
||||||
# vault-action
|
# Vault GitHub Action
|
||||||
|
|
||||||
|
---
|
||||||
|
**NOTE**
|
||||||
|
|
||||||
|
This repository was recently adopted by HashiCorp. We're actively working on adding
|
||||||
|
additional functionality to this action soon:
|
||||||
|
|
||||||
|
- [ ] TLS
|
||||||
|
- [ ] mTLS
|
||||||
|
- [ ] Simplify secret request UX
|
||||||
|
---
|
||||||
|
|
||||||
A helper action for easily pulling secrets from HashiCorp Vault™.
|
A helper action for easily pulling secrets from HashiCorp Vault™.
|
||||||
|
|
||||||
|
|
@ -34,7 +45,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# ...
|
# ...
|
||||||
- name: Import Secrets
|
- name: Import Secrets
|
||||||
uses: RichiCoder1/vault-action
|
uses: hashicorp/vault-action
|
||||||
with:
|
with:
|
||||||
url: https://vault.mycompany.com:8200
|
url: https://vault.mycompany.com:8200
|
||||||
token: ${{ secrets.VaultToken }}
|
token: ${{ secrets.VaultToken }}
|
||||||
|
|
@ -276,7 +287,7 @@ If you need to retrieve secrets from a specific Vault namespace, all that's requ
|
||||||
steps:
|
steps:
|
||||||
# ...
|
# ...
|
||||||
- name: Import Secrets
|
- name: Import Secrets
|
||||||
uses: RichiCoder1/vault-action
|
uses: hashicorp/vault-action
|
||||||
with:
|
with:
|
||||||
url: https://vault-enterprise.mycompany.com:8200
|
url: https://vault-enterprise.mycompany.com:8200
|
||||||
method: token
|
method: token
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/RichiCoder1/vault-action.git"
|
"url": "git+https://github.com/hashicorp/vault-action.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hashicorp",
|
"hashicorp",
|
||||||
|
|
@ -36,12 +36,12 @@
|
||||||
"github-actions",
|
"github-actions",
|
||||||
"javascript"
|
"javascript"
|
||||||
],
|
],
|
||||||
"author": "Richard Simpson <richardsimpson@outlook.com>",
|
"author": "HashiCorp",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/RichiCoder1/vault-action/issues"
|
"url": "https://github.com/hashicorp/vault-action/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/RichiCoder1/vault-action#readme",
|
"homepage": "https://github.com/hashicorp/vault-action#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"got": "^10.2.2",
|
"got": "^10.2.2",
|
||||||
"jsonata": "^1.8.2"
|
"jsonata": "^1.8.2"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue