Which step is an error is associated with?

How do you know which step in a job was the one the produced the error? The current output is nearly useless as I can’t even see console input/output.

What does “.github#L1” mean that appears on any message?

This is what I had as my yml file.

name: "Validation"

on:
  push:
    branches:
      - $default-branch
  pull_request:

jobs:
  terraform:
    name: "Terraform"
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash    
    steps:              
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup Terraform
        uses: hashicorp/setup-terraform@v1
        with:
          terraform_version: 0.13.5

      - name: Terraform Format
        id: fmt
        run: terraform fmt -check
        working-directory: ./example
        continue-on-error: true

      - name: Terraform Init
        id: init
        run: terraform init
        working-directory: ./example
        continue-on-error: true

      - name: Terraform Plan
        id: plan
        if: github.event_name == 'pull_request'
        run: terraform plan -no-color
        working-directory: ./example
        continue-on-error: true

      - uses: actions/github-script@0.9.0
        if: github.event_name == 'pull_request'
        env:
          PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          script: |
            const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
            #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
            #### Terraform Plan 📖\`${{ steps.plan.outcome }}\`

            <details><summary>Show Plan</summary>

            \`\`\`${process.env.PLAN}\`\`\`

            </details>

            *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;

              
            github.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: output
            })

      - name: Terraform Status check
        if: steps.fmt.outcome == 'failure' || steps.init.outcome == 'failure' || steps.plan.outcome == 'failure' 
        run: exit 1

      - name: Terraform Apply
        id: apply
        if: github.ref == 'refs/heads/main' && github.event_name == 'push'
        run: terraform apply -auto-approve    
        working-directory: ./example
        continue-on-error: true

      - name: Terraform Destroy
        id: destroy
        if: github.ref == 'refs/heads/$default-branch' && github.event_name == 'push'
        run: terraform destroy -auto-approve    
        working-directory: ./example

      - name: Terraform Apply Status check
        if: steps.apply.outcome == 'failure'
        run: exit 1

@rlove,

Looks like, this indeed is a confusing question.
From the Annotations section, we only can see which job an error is from, but can’t see which step the error is from.

I recommend that you can directly share a feature request in the Feedback form for GitHub to ask add more details information of each error listed on the Annotations section so that users can locate the error accurately.
That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.