diff --git a/.github/workflows/is-semantic-pr.yml b/.github/workflows/is-semantic-pr.yml index 9031ffb3c..5b4b7db94 100644 --- a/.github/workflows/is-semantic-pr.yml +++ b/.github/workflows/is-semantic-pr.yml @@ -9,4 +9,4 @@ jobs: - name: ๐Ÿค– is-semantic-release uses: sebbo2002/action-is-semantic-pr@develop with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/release-bot.yml b/.github/workflows/release-bot.yml index 455a07727..685c0ae60 100644 --- a/.github/workflows/release-bot.yml +++ b/.github/workflows/release-bot.yml @@ -10,9 +10,6 @@ jobs: release-bot: runs-on: ubuntu-latest if: ${{ github.repository != 'sebbo2002/js-template' }} - permissions: - contents: write - pull-requests: write steps: - name: โ˜๏ธ Checkout Project uses: actions/checkout@v3 @@ -32,4 +29,4 @@ jobs: - name: ๐Ÿค– Run ReleaseBot uses: ./.actions/release-bot with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 6062f4f4e..dd2b8fcc1 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -10,7 +10,7 @@ jobs: - name: ๐Ÿงน Cleanup issues & pull requests uses: actions/stale@v5 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.GH_TOKEN }} stale-issue-message: | This issue has been automatically marked as stale because it has not had recent activity :sleeping: It will be closed in 14 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation. diff --git a/.github/workflows/template-updater.yml b/.github/workflows/template-updater.yml index 4610e961a..b56b07b5c 100644 --- a/.github/workflows/template-updater.yml +++ b/.github/workflows/template-updater.yml @@ -8,13 +8,10 @@ jobs: TemplateUpdater: runs-on: ubuntu-latest if: ${{ github.repository != 'sebbo2002/js-template' }} - permissions: - contents: write - pull-requests: write steps: - name: ๐Ÿค– is-semantic-release uses: sebbo2002/action-template-updater@develop with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GH_TOKEN }} template: sebbo2002/js-template assignees: sebbo2002 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 34ab2b29e..5694f8d36 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -70,12 +70,6 @@ jobs: - tests - license-checker if: ${{ github.repository != 'sebbo2002/js-template' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }} - permissions: - contents: write - issues: write - pull-requests: write - packages: write - pages: write steps: - name: โ˜๏ธ Checkout Project uses: actions/checkout@v3 @@ -91,7 +85,7 @@ jobs: run: BRANCH=${GITHUB_REF#refs/heads/} npx semantic-release env: GH_REPO: ${{ github.repository }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_OWNER: ${{ github.repository_owner }} PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org NPM_USERNAME: ${{ github.repository_owner }} @@ -100,7 +94,7 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} uses: everlytic/branch-merge@1.1.2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GH_TOKEN }} source_ref: 'main' target_branch: 'develop' commit_message_template: 'Merge branch {source_ref} into {target_branch} [skip ci]'