Skip to content

Commit

Permalink
feat: use vault secrets (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
crissto authored Oct 4, 2022
1 parent 0e48c6b commit c60c7b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

version: 2.1
jobs:
check:
Expand Down Expand Up @@ -33,7 +32,6 @@ jobs:
name: Run Unit Tests
command: |
npm run test:unit
test-integration:
docker:
- image: cimg/node:16.11
Expand All @@ -46,7 +44,6 @@ jobs:
name: Run Integration Tests
command: |
npm run test:integration
test-e2e:
docker:
- image: cimg/node:16.11
Expand All @@ -59,15 +56,13 @@ jobs:
name: Run E2E Tests
command: |
npm run test:e2e
release:
docker:
- image: cimg/node:16.11
steps:
- checkout
- run: npm install
- run: npm run semantic-release

workflows:
test-and-release:
jobs:
Expand Down
5 changes: 5 additions & 0 deletions .contentful/vault-secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
services:
github-action:
policies:
- dependabot
11 changes: 6 additions & 5 deletions .github/workflows/dependabot-approve-and-request-merge.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: "dependabot approve-and-request-merge"

on:
pull_request_target
on: pull_request_target

jobs:
worker:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest

if: github.actor == 'dependabot[bot]'
steps:
- uses: contentful/dependabot-auto-merge@v1
- uses: contentful/github-auto-merge@v1
with:
github_token: ${{ secrets.CF_ECOSYSTEM_BOT_GITHUB_TOKEN_AUTO_APPROVE }}
VAULT_URL: ${{ secrets.VAULT_URL }}

0 comments on commit c60c7b7

Please sign in to comment.