Skip to content

Commit

Permalink
Workflow permission updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso authored Jan 16, 2024
1 parent 342ad53 commit 2f799dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
schedule:
# Daily at 9AM
- cron: "0 9 * * *"


jobs:
update_ofac_list:
Expand All @@ -15,7 +16,19 @@ jobs:
contents: write

steps:
- name: Get GitHub Token from Akeyless
id: get_github_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
dynamic-secrets: '{"/dynamic-secrets/keys/github/compliance/contents=write,pull_requests=write":"PAT"}'

- uses: actions/checkout@v4
with:
token: ${{ env.PAT }}

- uses: actions/setup-node@v3
with:
node-version: "18.x"
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ jobs:
repository-projects: write

steps:
- name: Get GitHub Token from Akeyless
id: get_github_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
dynamic-secrets: '{"/dynamic-secrets/keys/github/compliance/contents=write,pull_requests=write":"PAT"}'
- uses: actions/checkout@v4

- name: Get NPM Token from Akeyless
id: get_npmjs_token
Expand All @@ -31,10 +24,6 @@ jobs:
access-id: p-kf9vjzruht6l
static-secrets: '{"/static-secrets/NPM/npm-publish-token":"NPM_TOKEN"}'

- uses: actions/checkout@v4
with:
token: ${{ env.PAT }}

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

0 comments on commit 2f799dc

Please sign in to comment.