Skip to content

Commit 32bd95f

Browse files
authored
chore: remove private github access token (#4)
1 parent bad4bd6 commit 32bd95f

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ jobs:
1919
with:
2020
go-version-file: go.mod
2121

22-
- uses: infracost/create-github-app-token@v1
23-
id: app-token
24-
with:
25-
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
26-
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
27-
owner: ${{ env.TARGET_ORG }}
28-
repositories: cli,config
29-
30-
- run: |
31-
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
32-
33-
- name: Configure private Go modules
34-
run: git config --global url."https://${{ secrets.GO_PRIVATE_TOKEN }}@github.com/".insteadOf "https://github.com/"
35-
3622
- run: go test ./...
3723

3824
lint:
@@ -44,20 +30,6 @@ jobs:
4430
with:
4531
go-version-file: go.mod
4632

47-
- uses: infracost/create-github-app-token@v1
48-
id: app-token
49-
with:
50-
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
51-
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
52-
owner: ${{ env.TARGET_ORG }}
53-
repositories: cli,config
54-
55-
- run: |
56-
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
57-
58-
- name: Configure private Go modules
59-
run: git config --global url."https://${{ secrets.GO_PRIVATE_TOKEN }}@github.com/".insteadOf "https://github.com/"
60-
6133
- uses: golangci/golangci-lint-action@v7
6234
with:
6335
version: v2.4
@@ -71,16 +43,5 @@ jobs:
7143
with:
7244
go-version-file: go.mod
7345

74-
- uses: infracost/create-github-app-token@v1
75-
id: app-token
76-
with:
77-
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
78-
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
79-
owner: ${{ env.TARGET_ORG }}
80-
repositories: cli,config
81-
82-
- run: |
83-
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
84-
8546
- name: Check formatting
8647
run: test -z "$(gofmt -l .)"

.github/workflows/release.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ jobs:
2424
go-version-file: go.mod
2525
cache-dependency-path: go.sum
2626

27-
- uses: infracost/create-github-app-token@v1
28-
id: app-token
29-
with:
30-
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
31-
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
32-
owner: infracost
33-
repositories: "cli,config"
34-
permission-contents: write
35-
36-
- run: |
37-
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
3827

3928
- uses: goreleaser/goreleaser-action@v6
4029
with:

0 commit comments

Comments
 (0)