Skip to content

Commit 5fef6b8

Browse files
fix: remove vault steps so that the build can pass with new vault setup (#815)
* fix: contentful/node-apps-toolkit.git-denied-to-github-actions-bot * fix: contentful/node-apps-toolkit.git-denied-to-github-actions-bot * fix: semantic-release GH policy * fix: remove vault steps so that the build can pass with new vault setup fix: remove semantic release ecosystem
1 parent 0f60359 commit 5fef6b8

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
steps:
6262
- checkout
6363
- vault/get-secrets:
64-
template-preset: "semantic-release-ecosystem"
64+
template-preset: "semantic-release"
6565
- run: echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_WRITE_TOKEN}" > ~/.npmrc
6666
- run: echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc
6767
- node/install:

.github/workflows/pages-build-deployment.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,14 @@ on:
99
permissions:
1010
contents: read
1111
pages: write
12-
id-token: write
1312

1413
jobs:
1514
build:
1615
runs-on: ubuntu-latest
1716

1817
steps:
19-
- name: Retrieve Secrets from Vault
20-
id: vault
21-
uses: hashicorp/vault-action@v3.4.0
22-
with:
23-
url: ${{ secrets.VAULT_URL }}
24-
role: ${{ github.event.repository.name }}-github-action
25-
method: jwt
26-
path: github-actions
27-
exportEnv: false
28-
secrets: |
29-
github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN ;
30-
secret/data/github/automation-app-user GH_USER_NAME | GIT_COMMITTER_NAME ;
31-
secret/data/github/automation-app-user GH_USER_EMAIL | GIT_COMMITTER_EMAIL ;
32-
3318
- name: Checkout Repository
3419
uses: actions/checkout@v3
35-
with:
36-
fetch-depth: 0
37-
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
38-
token: ${{ steps.vault.outputs.GITHUB_TOKEN }}
3920

4021
- name: Set up Node.js
4122
uses: actions/setup-node@v3
@@ -51,6 +32,6 @@ jobs:
5132
- name: Deploy to GitHub Pages
5233
uses: peaceiris/actions-gh-pages@v4
5334
with:
54-
github_token: ${{ steps.vault.outputs.GITHUB_TOKEN }}
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
5536
publish_dir: ./docs
5637
publish_branch: gh-pages

0 commit comments

Comments
 (0)