diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 8f9ece9..007f02c 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -38,4 +38,4 @@ jobs: id: ml uses: oxsecurity/megalinter/flavors/ci_light@v8 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index c811cae..3ae6746 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4.1.7 with: fetch-depth: 0 - token: ${{ secrets.PAT }} + token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} - name: Configure Git run: | git config --global user.name GitHub Actions @@ -26,5 +26,5 @@ jobs: version: 0.13.0 - run: knope prepare-release --verbose env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} continue-on-error: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9401800..9786c63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,4 +20,4 @@ jobs: version: 0.13.0 - run: knope release env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}