Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [ODIN-1467] github tokens #141

Merged
merged 5 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions .github/workflows/auto-release-duckdb-bleeding-edge.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
fetch-depth: 0
ref: master
token: ${{secrets.BRANCH_PROTECTION_TOKEN}}
token: ${{secrets.RELEASE_JOB_GIT_COMMIT_TOKEN}}
- name: Setup node
uses: actions/setup-node@v1
with:
Expand All @@ -32,7 +32,7 @@ jobs:
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.BRANCH_PROTECTION_TOKEN }}
access_token: ${{ secrets.RELEASE_JOB_MASTER_PROTECTION_TOKEN }}
enforce_admins: false
branch: master
- name: Install modules with frozen lockfile and build
Expand All @@ -50,16 +50,15 @@ jobs:
yarn publish --tag provisional-release --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.UPLOAD_ARTIFACTS_TOKEN }}
USERNAME: ${{secrets.USERNAME}}
EMAIL: ${{secrets.EMAIL}}
GH_TOKEN: ${{secrets.BRANCH_PROTECTION_TOKEN}}
GH_TOKEN: ${{secrets.RELEASE_JOB_UPLOAD_ARTIFACTS_TOKEN}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.BRANCH_PROTECTION_TOKEN }}
access_token: ${{ secrets.RELEASE_JOB_MASTER_PROTECTION_TOKEN }}
enforce_admins: true
branch: master
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
yarn lint:check
yarn test:ci
env:
NODE_AUTH_TOKEN: ${{secrets.GIT_REGISTRY_TOKEN}}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.BUILD_JOB_GITHUB_REGISTRY_TOKEN}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}