File tree Expand file tree Collapse file tree 4 files changed +1
-62
lines changed
Expand file tree Collapse file tree 4 files changed +1
-62
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8- env :
9- GOPRIVATE : github.com/infracost/*
10-
118jobs :
129 golangci-lint :
1310 runs-on : ubuntu-24.04
1714 with :
1815 cache : false
1916 go-version-file : go.mod
20- - uses : infracost/create-github-app-token@v1
21- id : app-token
22- with :
23- app-id : ${{ secrets.INFRACOST_CI_APP_ID }}
24- private-key : ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
25- owner : infracost
26- repositories : config
27- - run : |
28- git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
2917 - name : golangci-lint
3018 uses : golangci/golangci-lint-action@v9
3119 with :
3927 with :
4028 cache : false
4129 go-version-file : go.mod
42- - uses : infracost/create-github-app-token@v1
43- id : app-token
44- with :
45- app-id : ${{ secrets.INFRACOST_CI_APP_ID }}
46- private-key : ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
47- owner : infracost
48- repositories : config
49- - run : |
50- git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
5130 - run : make mocks
5231 - name : Check for changes
5332 run : |
Original file line number Diff line number Diff line change 8888 go-version-file : go.mod
8989 cache-dependency-path : go.sum
9090
91- - uses : infracost/create-github-app-token@v1
92- id : app-token
93- with :
94- app-id : ${{ secrets.INFRACOST_CI_APP_ID }}
95- private-key : ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
96- owner : infracost
97- repositories : config
98- permission-contents : read
99-
100- - run : |
101- git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
102-
10391 - name : Build
10492 env :
105- GOPRIVATE : github.com/infracost/*
10693 GOOS : ${{ matrix.goos }}
10794 GOARCH : ${{ matrix.goarch }}
10895 VERSION : ${{ needs.version.outputs.version }}
@@ -149,4 +136,4 @@ jobs:
149136 run : |
150137 gh release edit "$VERSION" \
151138 --repo "${{ github.repository }}" \
152- --draft=false
139+ --draft=false
Original file line number Diff line number Diff line change 66 branches :
77 - main
88
9- env :
10- GOPRIVATE : github.com/infracost/*
11-
129jobs :
1310 unit :
1411 name : Unit Tests
3027 restore-keys : |
3128 ${{ runner.os }}-go-${{ hashFiles('go.mod') }}-
3229
33- - uses : infracost/create-github-app-token@v1
34- id : app-token
35- with :
36- app-id : ${{ secrets.INFRACOST_CI_APP_ID }}
37- private-key : ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
38- owner : infracost
39- repositories : config
40-
41- - run : |
42- git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
43-
4430 - run : make test
Original file line number Diff line number Diff line change @@ -39,26 +39,13 @@ jobs:
3939 steps :
4040 - uses : actions/checkout@v4
4141
42- - uses : infracost/create-github-app-token@v1
43- id : app-token
44- with :
45- app-id : ${{ secrets.INFRACOST_CI_APP_ID }}
46- private-key : ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
47- owner : " infracost"
48- repositories : config
49- permission-contents : read
50-
5142 - uses : actions/setup-go@v6
5243 with :
5344 cache : false
5445 go-version-file : go.mod
5546
5647 - run : |
57- git config --global url."https://x-access-token:${GH_TOKEN}@github.com/infracost/".insteadOf "https://github.com/infracost/"
5848 go build -o /tmp/update-manifest ./tools/update-manifest
59- env:
60- GOPRIVATE: github.com/infracost/config
61- GH_TOKEN: ${{ steps.app-token.outputs.token }}
6249
6350 - uses : actions/checkout@v4
6451 with :
You can’t perform that action at this time.
0 commit comments