diff --git a/.github/workflows/action_pull_request.yml b/.github/workflows/action_pull_request.yml index 6f8f922..c67b547 100644 --- a/.github/workflows/action_pull_request.yml +++ b/.github/workflows/action_pull_request.yml @@ -6,8 +6,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 #v3.1.1 + with: + app-id: ${{ secrets.MELOS_APP_ID }} + private-key: ${{ secrets.MELOS_APP_PRIVATE_KEY }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - uses: kuhnroyal/flutter-fvm-config-action/setup@c378498f1d1962d33039c3989411093ef8a17b2c # v3.3.0 - name: Download dependencies and execute code generation run: | diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index b79d3e5..a033669 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -21,6 +21,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - uses: kuhnroyal/flutter-fvm-config-action/setup@c378498f1d1962d33039c3989411093ef8a17b2c # v3.3.0 - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0 with: diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 931eb3a..8b63e0b 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -10,13 +10,19 @@ jobs: publish-packages: name: Publish packages permissions: - contents: write id-token: write # Required for authentication using OIDC runs-on: [ ubuntu-latest ] steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 #v3.1.1 + with: + app-id: ${{ secrets.MELOS_APP_ID }} + private-key: ${{ secrets.MELOS_APP_PRIVATE_KEY }} - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - uses: kuhnroyal/flutter-fvm-config-action/setup@c378498f1d1962d33039c3989411093ef8a17b2c # v3.3.0 - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0 with: diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 2fe4328..7d9d486 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -7,9 +7,6 @@ on: jobs: publish-packages: name: Create tags for release - permissions: - actions: write - contents: write runs-on: [ ubuntu-latest ] if: contains(github.event.head_commit.message, 'chore(release)') steps: @@ -22,6 +19,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - uses: kuhnroyal/flutter-fvm-config-action/setup@c378498f1d1962d33039c3989411093ef8a17b2c # v3.3.0 - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0 with: