Skip to content

[github action] action fails - gh auth login #652

@luiscosta18

Description

@luiscosta18

Describe the issue

My github repository is private.

Github token for workflows is created https://docs.github.com/en/actions/concepts/security/github_token

Image

The action is failing

Image
name: Cloudformation - Validate
on:          
  pull_request:

permissions:
  contents: read
  issues: read
  checks: write
  pull-requests: write
  id-token: write      

env:
  AWS_REGION: eu-central-1

jobs:
  cfn-aguard:
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request'
    
    steps:
      - name: Checkout code
        uses: actions/checkout@v5
        with:
          fetch-depth: 0

      - name: Run cfn-guard
        uses: aws-cloudformation/[email protected]
        with:
          rules: './cf_rules'
          data: './cf_templates'
          analyze: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Operating System:
[Ubuntu]

Cc @joshfried-aws @dannyvassallo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions