diff --git a/.github/workflows/add-comment-from-tag.yml b/.github/workflows/add-comment-from-tag.yml index 831da95c..64d7932f 100644 --- a/.github/workflows/add-comment-from-tag.yml +++ b/.github/workflows/add-comment-from-tag.yml @@ -24,4 +24,4 @@ jobs: uses: peaceiris/actions-label-commenter@v1 with: config_file: .github/issue-auto-comments.yml - github_token: ${{ secrets.BOT_GITHUB_TOKEN }} + github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dependency-updates-summary.yml b/.github/workflows/dependency-updates-summary.yml index bca9f2d0..24fedb2d 100644 --- a/.github/workflows/dependency-updates-summary.yml +++ b/.github/workflows/dependency-updates-summary.yml @@ -11,7 +11,7 @@ jobs: - name: Yarn Lock Changes uses: Simek/yarn-lock-changes@main with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} collapsibleThreshold: '25' failOnDowngrade: 'false' path: 'yarn.lock' diff --git a/.github/workflows/get-size.yml b/.github/workflows/get-size.yml index 3ce961af..d778e35a 100644 --- a/.github/workflows/get-size.yml +++ b/.github/workflows/get-size.yml @@ -12,16 +12,16 @@ jobs: - name: Get Compressed Size uses: preactjs/compressed-size-action@v2 with: - repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} + repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} pattern: './dist/**/*.{js,css,html}' - strip-hash: '[-|.](\w{32}|\w{8}).' + strip-hash: '\\b\\w{8}\\.' exclude: '{./dist/manifest.json,**/*.map,**/node_modules/**}' minimum-change-threshold: 100 # Check number of lines of code added - name: Label based on Lines of Code uses: codelytv/pr-size-labeler@v1 with: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} xs_max_size: '10' s_max_size: '100' m_max_size: '500' diff --git a/.github/workflows/lgtm-comment.yml b/.github/workflows/lgtm-comment.yml index aeb9f99a..d0ccf496 100644 --- a/.github/workflows/lgtm-comment.yml +++ b/.github/workflows/lgtm-comment.yml @@ -24,4 +24,4 @@ jobs: - uses: ddradar/lgtm-action@v1 with: image-url: ${{ steps.act.outputs.selected }} - token: ${{ secrets.BOT_GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/pr-commenter.yml b/.github/workflows/pr-commenter.yml index 09e73744..8e13f6d3 100644 --- a/.github/workflows/pr-commenter.yml +++ b/.github/workflows/pr-commenter.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: exercism/pr-commenter-action@v1.3.0 with: - github-token: ${{ secrets.BOT_GITHUB_TOKEN }} + github-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} config-file: .github/pr-auto-comments.yml template-variables: | { "prAuthor": "${{ github.event.pull_request.user.login }}" } diff --git a/.github/workflows/unfurl-links.yml b/.github/workflows/unfurl-links.yml index 69d4c6a6..c2a2146d 100644 --- a/.github/workflows/unfurl-links.yml +++ b/.github/workflows/unfurl-links.yml @@ -13,5 +13,5 @@ jobs: steps: - uses: wow-actions/unfurl-links@v1 with: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} raw: true