Problem with validate schema
question
### Welcome
- [x] Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
- [x] Yes, I've searched similar issues on GitHub and didn't find any.
- [x] Yes, I've included all information below (version, config, etc).
### Description of the problem
I run action in my self hosted environament and have error with initialization:
```
Command failed: /root/golangci-lint-2.7.2-linux-amd64/golangci-lint config verify%0AThe command is terminated due to an error: [.golangci.yaml] validate: compile schema: failing loading "https://golangci-lint.run/jsonschema/golangci.v2.7.jsonschema.json": Get "https://golangci-lint.run/jsonschema/golangci.v2.7.jsonschema.json": context deadline exceeded (Client.Timeout exceeded while awaiting headers)%0A
```
I have internet in my agent and this error is sporadic.
### Version of golangci-lint
v2.7.2
### Version of the GitHub Action
v9
### Workflow file
<details>
```yml
name: Agent
on: [push]
jobs:
CI:
runs-on: ubuntu-self
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: agent/go.mod
- name: Install dependencies
run: go get -v
working-directory: agent
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.7.2
working-directory: agent
- name: test
run: go test ./...
working-directory: agent
```
</details>
### Golangci-lint configuration
<details>
```yml
version: "2"
linters:
exclusions:
paths:
- "(.+)_test.go"
```
</details>
### Go version
1.25
### Code example or link to a public repository
It is not needed, it is issue with initialize action itself.
关闭于 2026-01-04 4 条评论