Skip to content

Commit a7b4e11

Browse files
authored
Merge pull request #8 from upsun/remove_private_repo
Remove private repository (SEC-589)
2 parents 3ddd400 + 1f7c7cc commit a7b4e11

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
permissions:
1212
contents: read
1313

14-
env:
15-
GOPRIVATE: github.com/upsun/lib-sun
16-
1714
jobs:
1815

1916
lint:
@@ -24,10 +21,6 @@ jobs:
2421
with:
2522
go-version: '1.22'
2623
check-latest: true
27-
- name: Run config private repo
28-
env:
29-
TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }}
30-
run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
3124
- name: Run Go Format
3225
run: gofmt -s -w . && git diff --exit-code
3326
- name: Run Go Tidy
@@ -47,10 +40,6 @@ jobs:
4740
steps:
4841
- uses: actions/checkout@v4
4942
- uses: actions/setup-go@v4
50-
- name: Run config private repo
51-
env:
52-
TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }}
53-
run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
5443
- name: Run tests
5544
run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...
5645
- name: Go Benchmark
@@ -75,9 +64,5 @@ jobs:
7564
- uses: actions/setup-go@v4
7665
with:
7766
go-version: '1.22'
78-
- name: Run config private repo
79-
env:
80-
TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }}
81-
run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
8267
- name: Build
8368
run: go build -o /dev/null -v ./...

.github/workflows/release.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ permissions:
88
contents: write
99
packages: write
1010

11-
1211
jobs:
1312
release-linux-amd64:
1413
name: release linux/amd64
@@ -17,12 +16,6 @@ jobs:
1716
- uses: actions/checkout@v4
1817
- uses: wangyoucao577/go-release-action@v1
1918
with:
20-
pre_command: |
21-
echo "machine github.com login ${{ github.actor }} password ${{ secrets.MICK_GITHUB_TOKEN }}" > ~/.netrc
22-
chmod 600 ~/.netrc
23-
git config --global --add url."https://github.com/".insteadOf "ssh://[email protected]/"
24-
git config --global --add url."https://github.com/".insteadOf "[email protected]"
25-
go env -w GOPRIVATE=github.com/upsun/*
2619
github_token: ${{ secrets.GITHUB_TOKEN }}
2720
goos: linux
2821
goarch: amd64

0 commit comments

Comments
 (0)