1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 20:38:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Skyler Mäntysaari
f5be954731 Add GitHub auth status check step
Add step to check GitHub authentication status before creating a release.
2026-03-15 08:01:19 +02:00
Copilot
c75696af2a Fix HTTP 403 on gh release create by adding workflow-level permissions (#654)
* Fix HTTP 403 when creating GitHub releases by adding workflow-level permissions

Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>
2026-02-27 15:59:39 +02:00
2 changed files with 14 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ on:
workflow_dispatch: workflow_dispatch:
release: release:
types: [published] types: [published]
permissions:
contents: read
packages: write
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -5,6 +5,10 @@ on:
- cron: '0 2 * * 0' # Every Sunday at 02:00 UTC - cron: '0 2 * * 0' # Every Sunday at 02:00 UTC
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
packages: write
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -100,6 +104,11 @@ jobs:
build-args: BASE_IMAGE=${{ matrix.base_image }} build-args: BASE_IMAGE=${{ matrix.base_image }}
no-cache: true no-cache: true
- name: Check gh auth status
run: gh auth status
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release - name: Create GitHub Release
run: | run: |
gh release create "${{ steps.release.outputs.next_tag }}" \ gh release create "${{ steps.release.outputs.next_tag }}" \