Any idea how to resolve? ```Run atmos describe aff...
# atmos
j
Any idea how to resolve?
Copy code
Run atmos describe affected --format=matrix
  atmos describe affected --format=matrix
  shell: /usr/bin/bash -e {0}
  env:
    ATMOS_PROFILE: ci
    ATMOS_IDENTITY: cfsb-aws-config-acct
 INFO  Starting GitHub OIDC authentication provider=github-oidc
 INFO  GitHub OIDC authentication successful provider=github-oidc
# Error

**Error:** git reference not found on local filesystem: exit status 128

## Hints

šŸ’” Make sure the ref is correct and was cloned by Git from the remote, or use
the '--clone-target-ref=true' flag to clone it.

šŸ’” Refer to <https://atmos.tools/cli/commands/describe/affected> for more details.
Error: Process completed with exit code 128.
Copy code
jobs:
  atmos-affected:
    name: šŸ‘½ Atmos Affected
    runs-on: ci-prod
    permissions:
      id-token: write
      contents: read
    env:
      ATMOS_PROFILE: ci
      ATMOS_IDENTITY: cfsb-aws-config-acct
    outputs:
      matrix: ${{ steps.affected.outputs.matrix }}
    steps:
      - uses: actions/checkout@v4
      - uses: cloudposse/github-action-setup-atmos@v3
        with:
          atmos-version: 1.210.0
          install-wrapper: false
      - name: atmos describe affected
        id: affected
        run: |
          MATRIX=$(atmos describe affected --format=json)
          echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT

  atmos-plan:
    name: šŸ‘½ Atmos Plan
    needs: atmos-affected
    runs-on: ci-prod
    permissions:
      id-token: write
      contents: read
    env:
      ATMOS_PROFILE: ci
      ATMOS_IDENTITY: cfsb-aws-config-acct
    strategy:
      matrix: ${{ fromJson(needs.atmos-affected.outputs.matrix) }}
    steps:
      - uses: actions/checkout@v4
      - uses: cloudposse/github-action-setup-atmos@v3
        with:
          atmos-version: 1.210.0
          install-wrapper: false
      - uses: hashicorp/setup-terraform@v3
        with:
          terraform_version: 1.11.4
          terraform_wrapper: false
      - name: atmos plan affected
        run: atmos plan affected --format=matrix
e
Oh, you're missing the checkout step I think
You can drop ` hashicorp/setup-terraform@v3`; use toolchain instead
j
I am using
uses: actions/checkout@v4
, but I'm guessing I need specific configs passed?
e
Gotta get my eyes checked. 😃
@Dan Miller (Cloud Posse) I think you recently did something with "describe affected" and might have an example handy.
d
Make sure you check out the SHA that you're trying to compare
For example, here's a workflow that I have
atmos-pro.yaml
e
A few things to note here, you don't need to specify any
ATMOS_PRO_
env
The
--upload
is only if using Atmos Pro