Skip to content

Unrecognized named-value: 'github' error #782

Description

@dzcode

Describe the bug
When using the new v11.1 release, I'm getting an Unrecognized named-value: 'github' error when GHA is parsing the workflow file (in the Set Up Job step)

Workflow used
Provide a snippet of the workflow and/or a link to it (use the commit sha as the ref when you link it, so that it's not influenced by other changes). If you only share a section of the workflow, make sure it includes the step that uses the action!

name: Publish Packages

on:
  push:
    branches: ['main']

jobs:
  commit-test:
    name: Bump version
    runs-on: private
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Make test file
        run: touch test_file.py
        shell: bash

      - name: Commit and push changes
        uses: EndBug/add-and-commit@v11.0.0
        with:
          add: 'test_file.py'
          message: 'chore: add test_file.py'
          author_name: 'GitHub Action'
          author_email: 'testemail@foo.bar'
          pull: '--rebase --autostash'
          push: true
          push_attempts: 3

Expected behavior
Action should load like normal without errors

Logs
Either provide a link to the action run or (if your repo is private) paste here the logs from the step that uses it. If you paste the logs, please use this template, and remember to paste the logs from all the different sections.

Logs

Current runner version: '2.123.0'
Runner name: 'runners-abc123-abc123'
Runner group name: 'private'
Machine name: 'runners-abc123-abc123'
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v6' (SHA:d23441a48e516b6c34aea4fa41551a30e30af803)
Download action repository 'EndBug/add-and-commit@v11' (SHA:fc1cf1dd8747466e3313305ba0d26460c62a7e59)
Getting action download info
Download action repository 'actions/setup-python@v6' (SHA:ece7cb06caefa5fff74198d8649806c4678c61a1)
Getting action download info
Download action repository 'astral-sh/setup-uv@v7' (SHA:37802adc94f370d6bfd71619e3f0bf239e1f3b78)
Error: EndBug/add-and-commit/v11/action.yml (Line: 25, Col: 18): Unrecognized named-value: 'github'. Located at position 1 within expression: github.workspace
Error: Failed to load EndBug/add-and-commit/v11/action.yml

Activity

  1. dzcode commented on Aug 18, 2026

    @dzcode
    ContributorAuthor

    I've attempted a fix for this issue here: #783

  2. adriandmitroca commented on Aug 19, 2026

    @adriandmitroca

    For now, the workaround is to pin to a previous version in the GitHub Action workflows: uses: EndBug/add-and-commit@v11.0.0

  3. jiacai2050 commented on Aug 19, 2026

    @jiacai2050
     jobs:
       newsletter:
         runs-on: ubuntu-latest
    @@ -60,10 +64,12 @@ jobs:
    
           - name: Commit
    -        uses: EndBug/add-and-commit@v11
    -        with:
    -          author_name: github-bot
    -          add: "data"
    +        run: |
    +          git config user.name "github-bot"
    +          git config user.email "github-bot@users.noreply.github.com"
    +          git add data/
    +          git diff --cached --quiet || git commit -m "Commit from GitHub Actions"
    +          git push

    It seems this action is not a must, I replace this action with commands above.

  4. added
    type: bugVerified problems that need to be worked on
    and removed
    status: pendingMore info is needed before deciding what to do
    on Aug 19, 2026
  5. EndBug commented on Aug 19, 2026

    @EndBug
    Owner

    Oops, my bad! I've just release the fix in v11.1.1
    Thank you!

    @all-contributors please add @dzcode for their bug report

  6. allcontributors commented on Aug 19, 2026

    @allcontributors
    Contributor

    @EndBug

    I've put up a pull request to add @dzcode! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerstype: bugVerified problems that need to be worked on

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions