Skip to content

Commit

Permalink
fix: runner to have akeyless access
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Oct 19, 2023
1 parent 3030d9c commit b13173f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.x"
node-version: "18.x"

- run: npm install

Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,27 @@ on:

jobs:
publish:
runs-on: ubuntu-latest

runs-on: ["self-hosted", "org", "npm-publish"]
permissions:
contents: write
id-token: write
pull-requests: write
repository-projects: write

steps:
- uses: actions/checkout@v4

- name: Akeyless Get Secrets
id: get_auth_token
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
access-id: p-kf9vjzruht6l
static-secrets: '{"/static-secrets/apps-tooling-circle/npm-publish-token":"NPM_TOKEN"}'

- uses: actions/setup-node@v3
with:
node-version: "20.x"
node-version: "18.x"

- run: npm install

Expand All @@ -25,15 +36,6 @@ jobs:
id: bump_version
run: echo "NPM_VERSION=$(npm version patch --no-git-tag-version)" >> $GITHUB_OUTPUT

- name: Akeyless Get Secrets
id: get_auth_token
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
# this access-id needs to change whenever devops gives em
access-id: p-kf9vjzruht6l
static-secrets: '{"/static-secrets/apps-tooling-circle/npm-publish-token":"NPM_TOKEN"}'

- name: Publish
run: npm publish
env:
Expand Down

0 comments on commit b13173f

Please sign in to comment.