Benign github Download

jessehouwing/actions-example-checker

Action declares a main entrypointBasename is uppercase README.md

Evidence

References Actions-provided GITHUB_TOKEN actions-dependency-submission.yml · lines 1–32
1name: Submit and validate dependencies of GitHub Actions
2
3on:
4 push:
5 branches:
⋯20 lines
26 - uses: jessehouwing/actions-dependency-submission@697d63307d85445f08471e2a6ab905937c2f7d18 # 1.0.16
27 with:
28 token: ${{ secrets.GITHUB_TOKEN }}
29 - uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # 5.0.0
30 if: github.event_name == 'pull_request'
31 with:
32 retry-on-snapshot-warnings: true
imports node:fs choice-alternatives.test.ts · lines 1–48
1import { describe, expect, it, beforeEach, afterEach } from '@jest/globals'
2import { promises as fs } from 'node:fs'
3import path from 'node:path'
4import {
5 loadActionSchemaDefinition,
6 resolveTypeDefinition,
7} from '../src/schema-loader.js'
8import { loadActionSchema } from '../src/action-schema.js'
9import { findReferencedSteps, validateStep } from '../src/validator.js'
10
11describe('Choice Options with Descriptions and Alternatives', () => {
12 const testDir = '/tmp/choice-alternatives-test'
13
14 beforeEach(async () => {
15 await fs.mkdir(testDir, { recursive: true })
16 })
17
18 afterEach(async () => {
19 await fs.rm(testDir, { recursive: true, force: true })
20 })
21
22 it('should support simple string options (backward compatibility)', async () => {
23 const actionPath = path.join(testDir, 'action.yml')
24 const schemaPath = path.join(testDir, 'action.schema.yml')
25
26 await fs.writeFile(actionPath, 'name: Test\n')
27 await fs.writeFile(
28 schemaPath,
29 `
⋯9 lines
39
40 const schema = await loadActionSchemaDefinition(actionPath)
41 expect(schema).not.toBeNull()
42 expect(schema?.inputs?.level).toBeDefined()
43 const levelDef = schema?.inputs?.level
44 if (typeof levelDef !== 'string') {
45 expect(levelDef?.type).toBe('choice')
46 expect(levelDef?.options).toEqual(['info', 'warning', 'error'])
47 }
48 })
Calls an expect assertion matcher choice-alternatives.test.ts · lines 70–74
70:26… ma?.inputs?.level
71 if (typeof levelDef !== 'string') {
72 expect(levelDef?.options).toHaveLength(3)
73 expect(levelDef?.options?.[0]).toEqual({ value: 'info' })
74 expect(levelDef?.options?.[1]).toEq …
Node fs writes to a file asynchronously choice-alternatives.test.ts · lines 349–354
349:56… a.yml')
350 await fs.writeFile(actionPath, actionYml)
351 await fs.writeFile(schemaPath, schemaYml)
352
353 const schema = await loadActionSchema(actionPath, testDir, 'owner/repo')
354 const schemas = new Map( …
it() function call choice-alternatives.test.ts · lines 558–564
558:2… }
559 })
560
561 describe('Type coercion for alternatives', () => {
562 it('should accept and convert boolean to string', async () => {
563 const actionPath = path.join(testDir, 'action.yml')
564 cons …

Showing the top 5 files — 2 more files (16 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.