Bump github.com/go-git/go-git/v5 to latest to resolve CVE-2023-49569 … #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
- name: Lint | |
run: make -k lint | |
test: | |
strategy: | |
matrix: | |
platform: | |
- ubuntu-latest | |
go: | |
- 1.17.x | |
- 1.18.x | |
- 1.19.x | |
include: | |
- platform: macos-latest | |
go: 1.19.x | |
- platform: windows-latest | |
go: 1.19.x | |
name: Test (Go ${{ matrix.go }} on ${{ matrix.platform }}) | |
runs-on: ${{ matrix.platform }} | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- name: Test | |
run: make -k test | |
env: | |
LINT_GO_VERSION: 1.19 | |
- name: Publish test coverage | |
if: "matrix.platform == 'ubuntu-latest' && matrix.go == '1.19.x'" | |
run: | | |
# Fetch more commits for coverage diff. | |
commits=${{ github.event.pull_request.commits }} | |
if [[ -n "$commits" ]]; then | |
# Prepare enough depth for diffs with master | |
git fetch --depth="$(( commits + 1 ))" | |
fi | |
make test-publish-coverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |