Skip to content

Commit 8d7e538

Browse files
committed
Update CI Workflow to Support Conditional Token Usage
- Modified the CI workflow to allow for conditional usage of the `PAT_TOKEN` or fallback to `GITHUB_TOKEN`, enhancing flexibility in authentication during automated processes. - This change improves the security and reliability of the CI workflow, ensuring proper authorization for commits while maintaining alignment with the project's focus on maintainability and performance.
1 parent 972ea62 commit 8d7e538

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/crystal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
uses: actions/checkout@v3
160160
with:
161161
fetch-depth: 0
162-
token: ${{ secrets.GITHUB_TOKEN }}
162+
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
163163

164164
- name: Compute Release Version
165165
id: semver

0 commit comments

Comments
 (0)