Skip to content

Reusable workflow: stylelint job fails org-wide on missing GitHub token for private dep #100

Description

@rubenvdlinde

Symptom

Every app using the reusable `quality.yml` workflow sees the stylelint job fail with:

could not read Username for 'https://github.com': Device not configured

The stylelint step is trying to fetch a private dependency over HTTPS without credentials.

Where seen

Discovered in docudesk#249 + docudesk#250 (2026-05-23). Also reproduces on every recent CI run for docudesk#242, and on the failed runs noted in docudesk#247 (sass-loader devDep).

Likely affects every app that uses the org's reusable workflow.

Probable cause

stylelint's installable dependency tree includes a private repo (probably under `ConductionNL` org) referenced by Git URL. The reusable workflow doesn't pass a PAT/token with read access to that repo, so the install step's clone fails.

Suggested fix

In `.github/.github/workflows/quality.yml` (the org reusable workflow), the npm-install steps that resolve stylelint deps need either:

  • a checkout/install with `token: ${{ secrets.GH_PACKAGES_READ_PAT }}` (or similar) so git+https URLs auth
  • a `.npmrc` with `//npm.pkg.github.com/:_authToken=...` for private GitHub Packages
  • OR migrate the private stylelint preset to a public package

Need an org maintainer with access to repo secrets to wire this up.

Acceptance

  • Stylelint job goes green across the fleet without per-app workarounds
  • Apps that have CSS to lint produce real stylelint results in CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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