Skip to content

Commit 7d80b25

Browse files
authored
chore: Remove private repo references (#14)
1 parent 637fc66 commit 7d80b25

File tree

4 files changed

+1
-62
lines changed

4 files changed

+1
-62
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches:
66
- main
77

8-
env:
9-
GOPRIVATE: github.com/infracost/*
10-
118
jobs:
129
golangci-lint:
1310
runs-on: ubuntu-24.04
@@ -17,15 +14,6 @@ jobs:
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:
@@ -39,15 +27,6 @@ jobs:
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: |

.github/workflows/release.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,8 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
branches:
77
- main
88

9-
env:
10-
GOPRIVATE: github.com/infracost/*
11-
129
jobs:
1310
unit:
1411
name: Unit Tests
@@ -30,15 +27,4 @@ jobs:
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

.github/workflows/update-manifest.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)