Hostile 99% github Download

doc-detective/github-action

Action declares a main entrypointBasename is uppercase README.md

Evidence

GitHub Actions OIDC write permission deploy-pages.yml · lines 1–37
1name: Deploy test fixture pages
2
3on:
4 push:
5 branches: [main]
⋯17 lines
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v4
26
27 - name: Setup Pages
28 uses: actions/configure-pages@v5
29
30 - name: Upload artifact
31 uses: actions/upload-pages-artifact@v3
32 with:
33 path: pages
⋯4 lines
actions/checkout workflow step reference local.yml · lines 1–48
1name: Run local action
2
3on:
4 workflow_dispatch:
5 inputs:
⋯43 lines
Declares runtime dependencies object package.json · lines 1–40
1{
2 "name": "doc-detective-github-action",
3 "version": "1.4.1",
4 "description": "Validate doc content by treating docs as testable assertions for a product.",
5 "main": "dist/index.js",
6 "scripts": {
7 "build": "node esbuild.config.mjs",
8 "typecheck": "tsc --noEmit",
9 "test": "node --test --disable-warning=MODULE_TYPELESS_PACKAGE_JSON && node scripts/check-doc-examples.mjs"
10 },
11 "repository": {
12 "type": "git",
13 "url": "git+https://github.com/doc-detective/github-action.git"
14 },
15 "author": "Manny Silva",
16 "license": "AGPL-3.0-only",
17 "bugs": {
18 "url": "https://github.com/doc-detective/github-action/issues"
19 },
20 "homepage": "https://github.com/doc-detective/github-action#readme",
21 "dependencies": {
22 "@actions/cache": "^6.3.0",
23 "@actions/core": "^3.0.0",
24 "@actions/exec": "^3.0.0",
25 "@actions/github": "^9.0.0",
26 "semver": "^7.8.6",
27 "yaml": "^2.9.1"
28 },
29 "devDependencies": {
30 "@commitlint/cli": "^21.2.4",
31 "@commitlint/config-conventional": "^21.2.4",
⋯4 lines
36 "esbuild": "^0.27.3",
37 "semantic-release": "^25.0.9",
38 "typescript": "^5.9.3"
39 }
40}
imports fs issueBody.test.ts · lines 1–14
1import test from "node:test";
2import assert from "node:assert/strict";
3import fs from "fs";
4import os from "os";
5import path from "path";
6import { buildIssueBody, ISSUE_BODY_LIMIT, readRunSummary } from "./issueBody.ts";
7
8const runUrl = "https://github.com/o/r/actions/runs/1";
9const base = { runUrl, prompt: "look", suffix: "", summary: "" };
10
11test("readRunSummary reads testResults.md from the run folder", () => {
12 const runDir = fs.mkdtempSync(path.join(os.tmpdir(), "dd-gha-run-"));
13 fs.writeFileSync(path.join(runDir, "testResults.md"), "## Failed\n\n| a | b |\n");
14 assert.equal(readRunSummary(runDir, runUrl), "## Failed\n\n …
Repeated computed-property calls (3+) issueBody.test.ts · lines 17–29
17:4… t("readRunSummary points to the run when there's no summary", () => {
18 const empty = fs.mkdtempSync(path.join(os.tmpdir(), "dd-gha-run-"));
19 for (const runDir of [undefined, "", 42, empty]) {
20 assert.equal(
21 readRunSummary(runDir, runUrl),
22 `Doc Detective wrote no summary for this run. See the [workflow run](${runUrl}).`
23 );
24 }
⋯5 lines

Showing the top 5 files — 3 more files (33 regions) not shown.

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.