Skip to content

Release-Workflow rot: marvinpinto/action-automatic-releases — fehlende contents:write-Permission #17

@stho32

Description

@stho32

Problem

Alle 3 offenen Dependabot-PRs (#16, #15, #14) sind UNSTABLE — der build-windows-latest-Job schlaegt fehl. Die Build-/Testschritte (0 Error(s)) laufen sauber durch, aber der anschliessende Release-Step bricht ab.

Root Cause

Der marvinpinto/action-automatic-releases-Step kann das latest-Tag nicht aktualisieren:

Could not create new tag "refs/tags/latest" (Resource not accessible by integration)
therefore updating existing tag "tags/latest"
##[error]Resource not accessible by integration

Das ist keine Code-Regression, sondern fehlende Token-Permissions. Dependabot-PRs erhalten per Default ein GITHUB_TOKEN mit nur Read-Rechten; ausserdem muss der Workflow explizit permissions: contents: write deklarieren, damit Tags/Releases angelegt werden koennen.

Fix

Im betroffenen Workflow (.github/workflows/*.yml) folgendes setzen:

permissions:
  contents: write

Zusaetzlich — der Release-Step sollte fuer Dependabot-PRs bedingt uebersprungen werden, weil Dependabot-Branches ohnehin keinen Release ausloesen sollen:

- name: Release
  if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]'
  uses: marvinpinto/action-automatic-releases@latest

Betroffene PRs

Failing Run

https://github.com/CleverCodeCravers/NoUpdates/actions/runs/24516970366

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions