Skip to content

Commit

Permalink
docs(README.md): replace ACCESS_TOKEN with PAT_ACCESS_TOKEN for clari…
Browse files Browse the repository at this point in the history
…ty and consistency

The change was made to clarify that the token being used is a Personal Access Token (PAT). This makes the documentation more explicit and consistent with common naming conventions.
  • Loading branch information
benjefferies committed Jan 30, 2024
1 parent 58a3413 commit 14a39ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ docker run -e ACCESS_TOKEN=abc123 -e BRANCH=master -e REPO=branch-protection-bot
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
access_token: ${{ secrets.PAT_ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
- name: Deploy
Expand All @@ -40,7 +40,7 @@ docker run -e ACCESS_TOKEN=abc123 -e BRANCH=master -e REPO=branch-protection-bot
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "Do not allow bypassing the above settings" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
access_token: ${{ secrets.PAT_ACCESS_TOKEN }}
owner: benjefferies
repo: branch-protection-bot
branch: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -87,7 +87,7 @@ steps:
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
access_token: ${{ secrets.PAT_ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false

Expand All @@ -97,7 +97,7 @@ steps:
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "Do not allow bypassing the above settings" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
access_token: ${{ secrets.PAT_ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: ${{ steps.disable_include_admins.outputs.initial_status }}
```
Expand Down

0 comments on commit 14a39ed

Please sign in to comment.