infracost/actions

feature: support multi api-key

rfyiamcool opened this issue · 2 comments

summary

infracost/actions support multiple api-key ?

on: [pull_request]
env:
  SSH_AUTH_SOCK: /tmp/ssh_agent.sock
jobs:
  infracost:
    name: Infracost
    runs-on: ubuntu-latest
    permissions:
      contents: read
      # Required to post comments
      pull-requests: write
  
    steps:
      - name: Setup Infracost
        uses: infracost/actions/setup@v2
        with:
          api-key: ${{ secrets.INFRACOST_API_KEY }}  // 😁 

@rfyiamcool it does not as organizations usually have an org-wide API key. Can you possibly share more about your use-case? One option is to run setup with 1 key, then each time you run infracost, you run it with a separate API key: INFRACOST_API_KEY=ico-xxxx infracost breakdown...