grafana/grafana main
Embeds a GitHub classic access tokenArchive member escapes extraction directory
SHA-256de81e0c216dc682833760d49ddd075018e5dd8e476705cebd822656e8443e756
Evidence
1# AGENTS.md
2
3Guidance for changes under `.github/` (workflows and actions).
4
5- After adding, renaming, or removing a workflow, run `make .policy.yml` and commit the result in the same change.
6- `./.github/actions/setup-go` keeps one shared build cache per go.mod hash, saved by whichever job finishes first.
7 Set `cache-build: 'false'` on jobs that compile little, such as lint, codegen, and checks, so they do not save a near-empty cache for every other job.
1/**
2 * @file This file exports the function `printAffectedPluginsSection`
3 * used to generate the affected plugins section in the report
4 * that is used in `levitate-parse-json-report.js`
5 */
6
7const { execSync } = require('child_process');
8const fs = require('fs');
9
10/**
11 * Extracts the package name from a given location string.
12 *
13 * @param {string} location - The location string contai …
17:20… ation.match(/(.+\/)dist\//);
18 if (match) {
19 const packageJsonPath = match[1] + 'package.json';
20 const data = fs.readFileSync(packageJsonPath, 'utf8');
21
22 if (!data) {
23 return '';
24 }
25
26 return JSON.parse(data)?.name || '';
27 }
28 return '';
29}
30
31const PANEL_URL = 'https://ops.grafana-ops.net/d/dmb2o0xnz/imported-property-details?orgId=1';
32
33/**
34 * Creates an array of HTML links for the given section and affecting properties.
35 *
36 * @param {Array} section - An array of objects, each containing `name …
135:17… `bq query --nouse_legacy_sql "${sqlQuery}"`;
136 const stdout = execSync(cmd, { encoding: 'utf-8' });
137
138 const rows = stdout.trim().split('\n');
⋯4 lines
1# AGENTS.md
2
3<!-- version: 2.2.0 -->
4
5This file provides guidance to AI agents when working with code in the Grafana repository.
6
7**Directory-scoped agent files exist for specialized areas — read them when working in those directories:**
8
9- `docs/AGENTS.md` — Do …
Showing the top 5 files — 2 more files (20 regions) not shown.
No evidence locations were recorded for this file. Raw result