Skip to content

Commit

Permalink
Renamed access token (#137)
Browse files Browse the repository at this point in the history
Renamed access token
  • Loading branch information
Zinovii Dmytriv authored Feb 15, 2023
1 parent b6da961 commit 048b463
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-opened-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Pull Request Opened Command
uses: actions/[email protected]
with:
github-token: ${{secrets.PUBLIC_REPO_ACCESS_TOKEN}}
github-token: ${{secrets.REPO_ACCESS_TOKEN}}
script: |
const issueNumber = ${{ github.event.client_payload.github.event.pull_request.number }};
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rebuild-readme-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# Checkout the pull request branch
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Add reaction to the original comment
uses: cloudposse/actions/github/[email protected]
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: hooray
4 changes: 2 additions & 2 deletions .github/workflows/terraform-fmt-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Checkout the pull request branch
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Add reaction to the original comment
uses: cloudposse/actions/github/[email protected]
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: hooray
36 changes: 18 additions & 18 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
reactions: ${{ needs.parse.outputs.ack-reaction }}

ping:
Expand All @@ -88,7 +88,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

readme:
runs-on: ubuntu-latest
Expand All @@ -113,14 +113,14 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}


# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v3
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for success"
Expand All @@ -165,7 +165,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for cancelled"
Expand All @@ -182,7 +182,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

bats:
runs-on: ubuntu-latest
Expand All @@ -207,13 +207,13 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v3
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for success"
Expand All @@ -306,7 +306,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for cancelled"
Expand All @@ -323,7 +323,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

terratest:
runs-on: ubuntu-latest
Expand All @@ -347,13 +347,13 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v3
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
OPSGENIE_API_KEY: ${{ secrets.OPSGENIE_API_KEY }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_APP_KEY: ${{ secrets.DD_APP_KEY }}
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for this success"
Expand All @@ -509,7 +509,7 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

# Update GitHub status for dispatch events
- name: "Update GitHub Status for cancelled"
Expand All @@ -526,5 +526,5 @@ jobs:
-url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
-owner "${{ github.event.client_payload.github.payload.repository.owner.login }}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

0 comments on commit 048b463

Please sign in to comment.