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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
uses: actions/checkout@v6
with:
repository: ${{ vars.PROTO_REPO || format('{0}/proto', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: _proto_ci

- name: Place ../proto for Go replace directive
Expand All @@ -116,7 +116,7 @@ jobs:
uses: actions/checkout@v6
with:
repository: ${{ vars.COMMON_REPO || format('{0}/common', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: _common_ci

- name: Place ../common for Go replace directive
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
uses: actions/checkout@v6
with:
repository: ${{ vars.PROTO_REPO || format('{0}/proto', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: _proto_ci

- run: mv _proto_ci ../proto
Expand All @@ -200,7 +200,7 @@ jobs:
uses: actions/checkout@v6
with:
repository: ${{ vars.COMMON_REPO || format('{0}/common', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: _common_ci
- run: mv _common_ci ../common

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,28 @@ jobs:
# nosql package contributes to coverage too.
TEST_MONGO_URI: mongodb://localhost:27017
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
path: api
# Full history so diff-cover can resolve origin/<base_ref> for the
# patch-coverage gate below (shallow clones lack the base commit).
fetch-depth: 0

- name: Checkout proto sibling (for go.mod replace ../proto)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ vars.PROTO_REPO || format('{0}/proto', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: proto

- name: Checkout common sibling (for go.mod replace ../common)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ vars.COMMON_REPO || format('{0}/common', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: common

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: api/go.mod

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
continue-on-error: true
run: go test ./... -short -count=1 -p 1 -coverprofile=coverage.out -covermode=atomic

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v6
with:
files: api/coverage.out
flags: api
Expand All @@ -159,7 +159,7 @@ jobs:
# coverage" step above is continue-on-error, so it still produces
# coverage.out even if a flaky test trips — the gate reads that file.
# ------------------------------------------------------------------
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
if: github.event_name == 'pull_request'
with:
python-version: '3.12'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ jobs:
# is a fine-grained PAT with read access to
# InstaNode-dev/{common,proto}. Set via
# `gh secret set REPO_ACCESS_TOKEN --repo InstaNode-dev/<name>`.
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: common

- name: Checkout proto sibling into ./proto
uses: actions/checkout@v6
with:
repository: ${{ vars.PROTO_REPO || format('{0}/proto', github.repository_owner) }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
path: proto

- name: Compute build metadata
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
path: api
# Sibling checkouts (proto/common) for repos with replace directives.
# No-op for repos that do not need them.
- uses: actions/checkout@v4
- uses: actions/checkout@v6
if: ${{ hashFiles('api/go.mod') != '' }}
with:
repository: InstaNode-dev/common
path: common
continue-on-error: true
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
repository: InstaNode-dev/proto
path: proto
continue-on-error: true
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: api/go.mod
- uses: golangci/golangci-lint-action@v8
- uses: golangci/golangci-lint-action@v9
with:
version: latest
working-directory: api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
with:
repository: ${{ github.repository_owner }}/infra
path: infra
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
- name: Install kubectl
uses: azure/setup-kubectl@v5
- name: Set up Go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: lycheeverse/lychee-action@v2
with:
args: --no-progress --max-concurrency 4 --exclude-mail './**/*.md' './**/*.html'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/oasdiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout PR
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: api
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
repository: InstaNode-dev/common
path: common
continue-on-error: true
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
repository: InstaNode-dev/proto
path: proto
continue-on-error: true
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: api/go.mod
- name: Build openapi.json from PR
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.30.0
- uses: actions/checkout@v6
- uses: crate-ci/typos@v1.46.3
continue-on-error: true # warn-only — surface findings without blocking CI
Loading