Try again to fix GitHub Actions permission issues
diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml
index 1d9cc8d..5532c5e 100644
--- a/.github/workflows/formatting.yml
+++ b/.github/workflows/formatting.yml
@@ -12,6 +12,9 @@
- "queue-main-**"
pull_request:
+permissions:
+ contents: write
+
jobs:
formatting:
runs-on: ubuntu-latest
@@ -71,5 +74,5 @@
# If this is a queue-main branch, push the changes
if [[ "${{ github.ref }}" == refs/heads/queue-main-* ]]; then
- git push -f origin HEAD
+ git push -f https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/boldsoftware/sketch.git HEAD
fi
diff --git a/.github/workflows/queue-main.yml b/.github/workflows/queue-main.yml
index ae4bfe2..3dd6713 100644
--- a/.github/workflows/queue-main.yml
+++ b/.github/workflows/queue-main.yml
@@ -18,7 +18,8 @@
jobs:
formatting:
uses: ./.github/workflows/formatting.yml
- permissions: read-all
+ permissions:
+ contents: write
with:
auto_fix: true