Commit ff7ed68
authored
fix: add GOPRIVATE and git config for private module access (#46)
## Summary
- Add `GOPRIVATE=github.com/conductorone/*` env var to lint and test
jobs
- Add optional `RELENG_GITHUB_TOKEN` secret for authenticating to
private repos
- Configure git credentials only when token is provided
## Problem
golangci-lint fails on baton-http based connectors because it can't
access the private `baton-http` module during type checking:
```
could not import github.com/conductorone/baton-http/pkg/bconfig
fatal: could not read Username for 'https://github.com': terminal prompts disabled
```
## Solution
Callers explicitly pass `RELENG_GITHUB_TOKEN` secret, which is used to
configure git credentials for private module access.
## Affected repos (36 total)
All connectors using `template: baton-http-template`
## Tested
- ✅ baton-sagehr PR #61 - both lint and test pass with this fix
## Caller workflow change required
Callers need to pass `RELENG_GITHUB_TOKEN`:
```yaml
jobs:
verify:
uses: ConductorOne/github-workflows/.github/workflows/verify.yaml@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
secrets:
RELENG_GITHUB_TOKEN: ${{ secrets.RELENG_GITHUB_TOKEN }}
```1 parent baa0422 commit ff7ed68
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
45 | 66 | | |
46 | 67 | | |
47 | 68 | | |
| |||
53 | 74 | | |
54 | 75 | | |
55 | 76 | | |
56 | | - | |
| |||
0 commit comments