Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ name: Go CI
# ubuntu-22.04 / macos-14 / windows-2022. Static checks (vet, gofmt,
# go mod tidy) and govulncheck run once, on the latest-Go Linux leg;
# coverage uploads run on the floor Linux leg (the established report leg).
# Callers must grant contents: read and id-token: write to the calling job;
# Codecov authenticates the short-lived GitHub OIDC identity, not a stored token.
#
# This workflow is self-tested in meta itself: .github/workflows/selftest.yml
# calls it against the selftest/ fixture, so changes here are validated before
Expand Down Expand Up @@ -68,7 +70,9 @@ on:
CODACY_PROJECT_TOKEN:
required: false

permissions: read-all
permissions:
contents: read
id-token: write

jobs:
build:
Expand Down Expand Up @@ -97,6 +101,7 @@ jobs:
- "1.27.x"
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v5
- name: Set up Go
Expand Down Expand Up @@ -165,7 +170,7 @@ jobs:
continue-on-error: true
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
files: ${{ inputs.working-directory }}/coverage.txt
- name: Upload Coverage Reports to Codacy
if: ${{ fromJSON(env.IS_REPORT) }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ permissions: read-all

jobs:
selftest:
permissions:
contents: read
id-token: write
uses: ./.github/workflows/go-ci.yml
with:
go-floor: "1.19"
Expand Down
Loading