Skip to content

Initial commit

Initial commit #2

Workflow file for this run

name: lint
on:
pull_request:
push:
branches:
- main
env:
GOPRIVATE: github.com/infracost/*
jobs:
golangci-lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
cache: false
go-version-file: go.mod
- uses: infracost/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
owner: infracost
repositories: config
- run: |
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10