Skip to content

Unable to pass run enviornment variable to Dockerfile #3606

@abhi-markan

Description

@abhi-markan

search you tried in the issue tracker

docker

describe your issue

I would like to pass an enviornment variable to my Dockerfile i.e. GIT_MODE which I can pass when running the CLI locally using docker run ... -e GIT_MODE=false ....

However there is no mechanism for me to accept this from .pre-commit-config.yaml.

pre-commit --version

4.5.1

.pre-commit-config.yaml

repos:
  - repo: local
    hooks:
      - id: baseline
        name: Secret scan
        language: docker_image
        entry: scanner:local
        pass_filenames: false

~/.cache/pre-commit/pre-commit.log (if present)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions