Skip to content

Commit 59f4cf2

Browse files
Fix GitHub Actions permissions for gh-pages branch push (#3)
* Fixed apt repo release flow. added intermediate testing stages * Fix reprepro architecture configuration and modularize APT scripts - Remove 'all' from Architectures field to fix reprepro error - Create modular scripts: setup-apt-repo.sh and update-apt-repo.sh - Update GitHub Actions workflow to use script-based approach - Fix 'Distribution contains an architecture called all' error - Ensure architecture-independent packages work correctly - Improve maintainability with separate bash scripts - Add comprehensive testing for APT repository scripts * Fix reprepro signing configuration for unsigned repositories - Remove 'SignWith: no' lines that were causing GPG key lookup errors - Add --ignore=wrongdistribution flag to reprepro commands - Allow unsigned repositories to work correctly - Fix 'Could not find any key matching no' error - Update all scripts and workflows with proper reprepro configuration * Fix GitHub Actions permissions for gh-pages branch push - Add workflow-level permissions for contents, pages, and id-token - Add job-level contents write permission for publish job - Fix 'Permission denied to github-actions[bot]' error - Allow automated pushing to gh-pages branch for APT repository updates --------- Co-authored-by: fcostaoliveira <[email protected]>
1 parent 75a9b6f commit 59f4cf2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/apt-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
env:
1515
DEBIAN_FRONTEND: noninteractive
1616

17+
permissions:
18+
contents: write
19+
pages: write
20+
id-token: write
21+
1722
jobs:
1823
build:
1924
runs-on: ubuntu-latest
@@ -56,6 +61,8 @@ jobs:
5661
publish:
5762
needs: build
5863
runs-on: ubuntu-latest
64+
permissions:
65+
contents: write
5966
steps:
6067
- name: Checkout gh-pages branch
6168
uses: actions/checkout@v4

0 commit comments

Comments
 (0)