Skip to content

fix(grafana): keep both metrics for cross-metric PromQL 'or' (#167) (… #276

fix(grafana): keep both metrics for cross-metric PromQL 'or' (#167) (…

fix(grafana): keep both metrics for cross-metric PromQL 'or' (#167) (… #276

Workflow file for this run

# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements.
# SPDX-License-Identifier: Elastic-2.0
name: Secrets Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
gitleaks:
name: Gitleaks
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Gitleaks CLI
run: |
set -euo pipefail
version="8.30.1"
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
arch="$(uname -m)"
case "${arch}" in
x86_64|amd64)
arch="x64"
;;
arm64|aarch64)
arch="arm64"
;;
*)
echo "::error::Unsupported architecture: ${arch}"
exit 1
;;
esac
archive="gitleaks_${version}_${os}_${arch}.tar.gz"
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${version}/${archive}" -o "${archive}"
tar -xzf "${archive}" gitleaks
chmod +x gitleaks
./gitleaks version
- name: Run Gitleaks
run: ./gitleaks git . --config gitleaks.toml --no-banner --redact