---
expeditor:
  secrets:
    COVERALLS_REPO_TOKEN:
      path: secret/coveralls/inspec/train
      field: repo_token

steps:
  - label: coverage
    commands:
      - /workdir/.expeditor/buildkite/coverage.sh
    expeditor:
      executor:
        docker:
          environment:
            - CI_ENABLE_COVERAGE="true"
            - CI_NAME="Buildkite"
            - CI_BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER
            - CI_BUILD_URL=$BUILDKITE_BUILD_URL
            - CI_BRANCH=$BUILDKITE_BRANCH
            - COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN

---

steps:
  - label: coverage
    commands:
      - /workdir/.expeditor/buildkite/coverage.sh
    expeditor:
      secrets:
        COVERALLS_REPO_TOKEN:
          path: secret/coveralls/inspec/train
          field: repo_token
      executor:
        docker:
          environment:
            - CI_ENABLE_COVERAGE="true"
            - CI_NAME="Buildkite"
            - CI_BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER
            - CI_BUILD_URL=$BUILDKITE_BUILD_URL
            - CI_BRANCH=$BUILDKITE_BRANCH
            - COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN

Move this secrets stuff into the label
Move this secrets stuff into the label

Signed-off-by: Miah Johnson <722873f9fa963292e0213e095373c87c1070cd81@chia-pet.org>
