We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5501b4b commit c9faff0Copy full SHA for c9faff0
1 file changed
.github/workflows/flutter-release.yml
@@ -8,6 +8,10 @@ env:
8
FLUTTER_VERSION: "3.35.2"
9
JAVA_VERSION: "17"
10
11
+# Ensure the GITHUB_TOKEN has write permissions for repository contents so releases/tags can be created.
12
+permissions:
13
+ contents: write
14
+
15
jobs:
16
# Job to build and release APK when PR is merged to main
17
build-and-release:
@@ -98,6 +102,8 @@ jobs:
98
102
env:
99
103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100
104
with:
105
+ # Explicitly pass the token as an input to the action to avoid permission ambiguity
106
+ token: ${{ secrets.GITHUB_TOKEN }}
101
107
tag_name: v${{ steps.version_info.outputs.version }}-${{ steps.version_info.outputs.build_number }}
108
name: ${{ steps.version_info.outputs.release_name }}
109
body_path: CHANGELOG.md
0 commit comments