Skip to content

Commit

Permalink
fix: gh_pat
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 16, 2023
1 parent f7a8e9d commit e4bb757
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
check-latest: true
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
- run: govulncheck ./...
build:
Expand All @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v3
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- name: Install Go
uses: actions/setup-go@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
lfs: ${{ inputs.lfs }}
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: secrets.gh_pat != null
- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
lfs: ${{ inputs.lfs }}
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruleguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fetch-depth: 0
- run: |
git config --global url."https://${{ secrets.gh_pat }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet"
if: env.GH_PAT != null
if: secrets.gh_pat != null
- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go_version }}
Expand Down

0 comments on commit e4bb757

Please sign in to comment.