Skip to content

Adding new extra Dimension to include the environment in the metrics and environment filed in the logs #12936

Adding new extra Dimension to include the environment in the metrics and environment filed in the logs

Adding new extra Dimension to include the environment in the metrics and environment filed in the logs #12936

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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.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'