Benign github Download

elastic/oblt-actions

Action declares a main entrypointBasename is uppercase README.md

Evidence

Claude agent identity reference copilot-instructions.md · lines 1–7
1# AI agent instructions for oblt-actions
2
3This file provides guidance to AI agents (Claude Code, GitHub Copilot, etc.) when working with code in this repository.
4
5## Meta instructions
6
7Important: Keep this file accurate and up to date. Update it immediately when (1) users give new instructions, (2) you find contradictions, or (3) new patterns or standards emerge. Treat t …
At least four Markdown-style heading lines copilot-instructions.md · lines 7–19
7:196… ntenance as a blocking, highest‑priority task that doesn’t need an explicit prompt.
8
9Note: This file is exempt from the “no new docs” rule below. Proactively edit and maintain this file as part of your duties.
10
11## Code Standards
12
13### Required before each commit
⋯6 lines
References Actions-provided GITHUB_TOKEN release-drafter.yml · lines 1–20
1name: release-drafter
2
3on:
4 push:
5 branches:
⋯12 lines
18 - uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
19 env:
20 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Imports the Node.js os module index.js · lines 1–48
1const core = require('@actions/core');
2const exec = require('@actions/exec');
3const os = require("os");
4
5async function run() {
6 try {
7 const gcsClientEmail = core.getInput('gcs-client-email');
8 const gcsPrivateKey = core.getInput('gcs-private-key');
9 const gcsPrivateKeyId = core.getInput('gcs-private-key-id');
10 const gcsProject = core.getInput('gcs-project');
11 const bucketName = core.getInput('bucket-name');
12 const config = core.getInput('config');
13
14 const workDir = process.env.GITHUB_WORKSPACE;
15 const userInfo = os.userInfo();
16
17 const args = [
18 'run', '--rm',
19 '-v', `${workDir}:/app`,
20 '-u', `${userInfo.uid}:${userInfo.gid}`,
⋯6 lines
27
28 // GCS env vars are secrets
29 for (secret of [gcsClientEmail, gcsPrivateKey, gcsPrivateKeyId, gcsProject]) {
30 core.setSecret(secret);
31 }
32
33 // Forward env vars
34 Object.keys(process.env).forEach(function (key) {
35 if (key.startsWith("GITHUB_") || key.startsWith("RUNNER_")) {
36 let value = process.env[key];
37 args.push('-e', `${key}=${value}`);
38
39 if (key === 'GITHUB_TOKEN') {
40 core.setSecret(value);
41 }
42 }
43
44 // Special case so we can inject env variables
45 if (key.startsWith("SNAPSHOTY_")) {
46 let value = process.env[key];
47 let variable = key.replace("SNAPSHOTY_", "")
48 args.push('-e', `${variable}=${value}`);
imports os matrix.py · lines 1–30
1import json
2import os
3import yaml
4from pathlib import Path
5
6
7def run() -> None:
8 excluded_file = os.getenv("EXCLUDED_FILE", "")
9 framework_file = os.environ["FRAMEWORKS_FILE"]
10 versions_file = os.environ["VERSIONS_FILE"]
11
12 excludes = {'exclude': []}
13
14 if len(excluded_file) > 0:
15 excludes = yaml.safe_load(Path(excluded_file).read_text())
16 frameworks = yaml.safe_load(Path(framework_file).read_text())
17 versions = yaml.safe_load(Path(versions_file).read_text())
18
19 matrix = {'include': []}
20 for version in versions['VERSION']:
21 for framework in frameworks['FRAMEWORK']:
22 if len(list(filter(lambda item: item['VERSION'] == version and item["FRAMEWORK"] == framework, excludes['exclude']))) > 0:
23 print('excluded ' + version + ' with ' + framework)
24 else:
25 matrix['include'].append({"version": version, "framework": framework})
26
27 with open(os.environ.get('GITHUB_OUTPUT'), "a") as f:
28 f.write("matrix={}\n".format(json.dumps(matrix)))
29
30run()

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.