Skip to content

Everything after # gets eaten in the set input, with no way to escape it since v3 #136

@sandhose

Description

@sandhose

Behaviour

Steps to reproduce this issue

Set the context like this:

- name: Build
  uses: docker/bake-action@v3
  with:
    set: |
      base.context=https://github.com/${{ github.repository }}.git#${{ github.ref }}

Expected behaviour

docker bake should be called with --set base.context=https://github.com/foo/bar#ref

or have a way to escape it. I tried putting quotes around, or backslashes, but none of this works.

Actual behaviour

docker bake should is called with --set base.context=https://github.com/foo/bar (without the #ref)

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions