Skip to content

[BUG] skip_validation has no effect on self-hosted macos runner #1893

@modosc

Description

@modosc

Describe the bug
this seems like a similar issue as #1771 - i'm unable to run the action on a self-hosted mac because gpg isn't installed. setting skip_validation has no effect.

To Reproduce
in my github workfow:

  test:
    runs-on: [self-hosted, macOS, ARM64]
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          flutter-version: "3.35.5"
          channel: "stable"
      - name: Run Tests
        run: flutter test --coverage
      - name: Upload results to Codecov
        uses: codecov/codecov-action@v5.5.1
        with:
          # we need to install gpg on our self-hosted mac minis but until then we can skip validation, see
          # https://github.com/codecov/codecov-action/issues/1769
          skip_validation: true
          verbose: true

Expected behavior
i should be able to submit coverage.

Regression
according to #1771 this was fixed so maybe it is a regression

Screenshots
my actual results when running the above:

Run codecov/codecov-action@v5.5.1
  with:
    skip_validation: true
    verbose: true
    disable_file_fixes: false
    disable_search: false
    disable_safe_directory: false
    disable_telem: false
    dry_run: false
    fail_ci_if_error: false
    git_service: github
    gcov_executable: gcov
    handle_no_reports_found: false
    recurse_submodules: false
    run_command: upload-coverage
    use_legacy_upload_endpoint: false
    use_oidc: false
    use_pypi: false
    version: latest
  env:
    ANDROID_KEY_PROPERTIES_BASE64: ***
    ANDROID_UPLOAD_KEYSTORE_BASE64: ***
    ENV_STAGING_JSON_BASE64: ***
    FLUTTER_ROOT: /Users/continuousintegration/github/actions-runner-3/_work/_tool/flutter/stable-3.35.5-arm64
    PUB_CACHE: /Users/continuousintegration/.pub-cache
Run missing_deps=""
  missing_deps=""
  
  # Check for required commands
  for cmd in bash git curl gpg; do
    if ! command -v "$cmd" >/dev/null 2>&1; then
      missing_deps="$missing_deps $cmd"
    fi
  done
  
  # Report missing required dependencies
  if [ -n "$missing_deps" ]; then
    echo "Error: The following required dependencies are missing:$missing_deps"
    echo "Please install these dependencies before using this action."
    exit 1
  fi
  
  echo "All required system dependencies are available."
  shell: /bin/sh -e {0}
  env:
    ANDROID_KEY_PROPERTIES_BASE64: ***
    ANDROID_UPLOAD_KEYSTORE_BASE64: ***
    ENV_STAGING_JSON_BASE64: ***
    FLUTTER_ROOT: /Users/continuousintegration/github/actions-runner-3/_work/_tool/flutter/stable-3.35.5-arm64
    PUB_CACHE: /Users/continuousintegration/.pub-cache
Error: The following required dependencies are missing: gpg
Please install these dependencies before using this action.

Product Area
coverage?

Versions

  • OS: macos arm64
  • Git Host: GitHub
  • CI/CD: GitHub Actions
  • Uploader: codecov-action@v5.5.1

Commit and CI link
this is a private repo so i'm unsure this will be useful. see the output i pasted above and please lmk if you need more.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions