renovatebot / renovatebot/github-action

Support `docker-cmd` option for renovate-config-validator

Open
#948 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
546
Forks
115
Avg merge
19h 4m
Merged PRs (30d)
10

Description

Background

We use this action for renovate-config-validator as well.

    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
      - run: |
          echo "$script" > renovate-config-validator.sh
          chmod +x renovate-config-validator.sh
        env:
          script: |
            #!/bin/bash
            set -eux -o pipefail
            exec renovate-config-validator /workspace/renovate.*

      - uses: renovatebot/github-action@a889a8abcb11ef7feaafaf5e483ea01d4bf7774e # v43.0.5
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          docker-cmd-file: renovate-config-validator.sh
          docker-volumes: ${{ github.workspace }}:/workspace

Feature request

It would be nice if it can pass the docker command directly.

For example, if this action supports docker-cmd, the workflow would be like:

      - uses: renovatebot/github-action@a889a8abcb11ef7feaafaf5e483ea01d4bf7774e # v43.0.5
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          docker-cmd: renovate-config-validator /workspace/renovate.*
          docker-volumes: ${{ github.workspace }}:/workspace

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how action inputs invoke the Docker command and how the existing docker-cmd-file option is handled. Add support for passing the requested docker-cmd value directly while preserving docker-volumes; done means the example workflow can run renovate-config-validator without creating a shell script.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.