Skip to content

Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto #13083

Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto

Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto #13083

Workflow file for this run

name: ci-go
on:
push:
tags:
- v*
branches:
- master
pull_request:
permissions:
contents: read
jobs:
vendor-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- name: Set up Golang
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: go.mod
- run: |
make go-verify
hack/ci-utils/isClean.sh
env:
GO_COMPLIANCE_INFO: "0"
GO111MODULE: 'auto'
GOFLAGS: '-mod=readonly'
generate-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- name: Set up Golang
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: go.mod
- name: Run make generate
run: |
make generate
hack/ci-utils/isClean.sh
env:
GO_COMPLIANCE_INFO: "0"
GO111MODULE: 'auto'
GOFLAGS: '-mod=readonly'
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- name: Set up Golang
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.2.1
args: -v --timeout 15m
env:
GO111MODULE: 'auto'
GOFLAGS: '-mod=readonly'
validate-go:
name: validate-go
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- name: Set up Golang
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: go.mod
- run: make validate-go-action
env:
GO_COMPLIANCE_INFO: "0"
GO111MODULE: 'auto'
GOFLAGS: '-mod=readonly'