Compare commits

..

8 Commits

Author SHA1 Message Date
Richard Simpson 6784ab3896 chore: try using different env name? 2019-09-20 18:33:56 -05:00
Richard Simpson 609488b35d chore: fix formatter fail 2019-09-20 18:29:04 -05:00
Richard Simpson 42871c7c42 chore: switch to semantic release 2019-09-20 18:28:48 -05:00
Richard Simpson 9c822dc25c chore: fix env var name 2019-09-20 18:23:30 -05:00
Richard Simpson bb5aae504b chore: add github token 2019-09-20 18:20:54 -05:00
Richard Simpson 6adb719ae2 chore: fix type 2019-09-20 18:18:14 -05:00
Richard Simpson 54b24ddb30 chore: add auto 2019-09-20 18:16:55 -05:00
Richard Simpson fbe0bd395b feat: bump name and add branding 2019-09-20 18:00:21 -05:00
4 changed files with 5663 additions and 59 deletions
@@ -1,26 +1,7 @@
name: Test
on: [push]
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install and test
run: |
npm ci
npm test
env:
CI: true
integration:
test:
runs-on: ubuntu-latest
services:
@@ -40,11 +21,16 @@ jobs:
node-version: 10.x
- name: npm install
run: npm ci
- name: npm run test
run: npm run test
env:
CI: true
- name: npm run test:integration
run: npm run test:integration
env:
VAULT_HOST: localhost
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
CI: true
e2e:
runs-on: ubuntu-latest
@@ -83,5 +69,20 @@ jobs:
- name: verify
run: npm run test:e2e
publish:
runs-on: ubuntu-latest
needs: [test, e2e]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: npm ci
- name: release
if: success() && endsWith(github.ref, 'master')
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5 -2
View File
@@ -1,4 +1,4 @@
name: 'Vault'
name: 'Vault Secrets'
description: 'A Github Action that allows you to consume the v2 K/V backend of HashiCorp Vault as secure environment variables'
inputs:
url:
@@ -12,4 +12,7 @@ inputs:
required: true
runs:
using: 'node12'
main: 'index.js'
main: 'index.js'
branding:
icon: 'unlock'
color: 'gray-dark'
+5590
View File
File diff suppressed because it is too large Load Diff
+46 -36
View File
@@ -1,38 +1,48 @@
{
"name": "vault-action",
"version": "0.1.0",
"description": "A Github Action that allows you to consume vault secrets as secure environment variables.",
"main": "index.js",
"scripts": {
"test": "jest",
"test:integration": "jest -c integration/jest.config.js",
"test:e2e": "jest -c e2e/jest.config.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RichiCoder1/vault-action.git"
},
"keywords": [
"hashicorp",
"vault",
"github",
"actions",
"github-actions",
"javascript"
],
"author": "Richard Simpson <richardsimpson@outlook.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/RichiCoder1/vault-action/issues"
},
"homepage": "https://github.com/RichiCoder1/vault-action#readme",
"dependencies": {
"@actions/core": "^1.1.1",
"got": "^9.6.0"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"jest": "^24.9.0",
"jest-when": "^2.7.0"
}
"name": "vault-action",
"version": "0.1.0",
"description": "A Github Action that allows you to consume vault secrets as secure environment variables.",
"main": "index.js",
"scripts": {
"test": "jest",
"test:integration": "jest -c integration/jest.config.js",
"test:e2e": "jest -c e2e/jest.config.js"
},
"release": {
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
],
"ci": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/RichiCoder1/vault-action.git"
},
"keywords": [
"hashicorp",
"vault",
"github",
"actions",
"github-actions",
"javascript"
],
"author": "Richard Simpson <richardsimpson@outlook.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/RichiCoder1/vault-action/issues"
},
"homepage": "https://github.com/RichiCoder1/vault-action#readme",
"dependencies": {
"@actions/core": "^1.1.1",
"got": "^9.6.0"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"jest": "^24.9.0",
"jest-when": "^2.7.0",
"semantic-release": "^15.13.24"
}
}