Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@effected/github-actions

Latest version: v0.38.4

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: spencerbeggs
8 Stars
2 Forks
66 Versions
4.9K Downloads
TypeScript Repo language

Scan summary

@effected/github-actions was last scanned on 28 Nov 2026 at version 0.38.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 66 versions; the latest 5 were published within 7 days (22–28 Nov 2026).
  • Findings: No rules fired in version 0.38.4.
  • Downloads: 4,903 downloads.

Versions

66 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.38.4 LATEST 28 Nov 2026 No rules fired
0.38.3 27 Nov 2026 No rules fired
0.38.2 26 Nov 2026 No rules fired
0.38.1 25 Nov 2026 Not shown
0.38.0 22 Nov 2026 Not shown

No rules fired in 0.38.4

Findings

Findings for v0.38.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.38.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@effected/github-actions

npm License: MIT Node.js %3E%3D24.11.0 TypeScript 7.0

The GitHub Actions runtime for Effect v4: the services an action needs to talk to the runner it is executing inside. Action.run composes the runtime, runs your program, renders a failure as an ::error:: annotation and sets the exit code. ActionInput reads workflow inputs as typed Config values — string, boolean, integer, redacted secret, multiline list, key=value pairs, or a schema-decoded JSON blob — with one absence rule shared by every accessor: unset and "" are both missing data. ActionOutputs, ActionState, ActionLogger and a fiber-local ActionEnvironment round out the runner surface, alongside ActionCache, Artifact, a metadata-carrying BlobStore (S3-compatible or the runner's own cache), OidcTokenIssuer and ToolInstaller for the heavier protocols. A reporting suite — GitHubMarkdown, ManagedDocument, CheckState and CheckDocument — covers the other direction: rendering what a run did onto a pull request comment, a check run or the job summary. No @actions/* dependency anywhere — the cache, artifact and tool-cache protocols are implemented directly against their HTTP APIs.

Pre-1.0.0. This package is part of the @effected/* kit, built on stable Effect v4 (effect ~4.1.0) and still in 0.x development. Stable Effect makes a kit 1.0.0 possible, not automatic. To keep your effect and @effect/* versions on the line the kit is built and tested against, install @effected/pnpm-plugin-effected.

Stability: unstable. This package's API surface is not yet considered complete and may change across 0.x releases. Pin an exact version — even a package marked stable before 1.0.0 can introduce a breaking change by accident, and an exact pin turns that into a type-check error rather than a runtime surprise. Full policy: release strategy.

Why @effected/github-actions

@actions/core and its siblings (@actions/cache, @actions/artifact, @actions/tool-cache) are the standard way to write an action, and each one owns its own ad hoc contract: inputs are read with getInput, which returns "" for both "unset" and "set to empty" with no way to tell them apart at the type level; outputs, masking and workflow commands are separate globals; and the cache and artifact clients bring their own HTTP stacks. This package answers the same questions as one coherent set of Effect services instead, with the absence rule stated once (Config.withDefault is the idiom for every optional input) and every mutation running through the same R-typed services a test can swap out.

It is also the one place in the kit where @effect/platform-node is a required peer, deliberately: a GitHub Action always compiles into a Node process on a GitHub-provided runner, so there is no second platform to abstract over. Everything that can go through a core contract still does — ToolInstaller downloads over HttpClient and extracts over ChildProcessSpawner, CacheKey reads over FileSystem — and the four sanctioned node: imports (node:crypto for digests, process.kill for reaping a bare pid, node:child_process for a detached spawn, and node:zlib/node:stream in the cache and artifact codecs) cover exactly what core cannot do yet.

The line against @effected/github is exact: that package talks to the GitHub API, this one talks to the runner. They meet at two seams — the token bridge (GitHubToken) and the Logger that maps Effect.log* onto workflow commands — and nothing here reads process.env.GITHUB_REPOSITORY on github's behalf.

Install

npm install @effected/github-actions effect @effect/platform-node
pnpm add @effected/github-actions effect @effect/platform-node

Requires Node.js >=24.11.0. effect v4 and @effect/platform-node are both peer dependencies.

All @effected/* packages are ESM-only: the exports maps publish only import conditions, so require() — including tools that resolve in CJS mode — fails with Node's ERR_PACKAGE_PATH_NOT_EXPORTED rather than loading a CJS build that does not exist. Import from an ES module.

Quick start

import { Action, ActionInput, ActionOutputs } from "@effected/github-actions";
import { Config, Effect } from "effect";

const program = Effect.gen(function* () {
  const name = yield* ActionInput.string("name").pipe(Config.withDefault("world"));
  const outputs = yield* ActionOutputs;
  yield* outputs.set("greeting", `Hello, ${name}!`);
});

await Action.run(program);
// exit code reflects success/failure; failures render as an ::error:: annotation

Action.run provides ActionServices (environment, logger, outputs, state, the Node platform, an HttpClient and the Digest, Mac, SecureRandom and Signature crypto services) by default. A capability with a heavier dependency — the cache, artifacts, the blob store — is one extra line: Action.run(program, { layer: ActionCache.layer }).

Step debugging works without wiring: when the runner sets RUNNER_DEBUG=1, Action.run lowers Effect's minimum log level to Debug, so Effect.logDebug calls show up as ::debug:: lines. It only ever lowers the level; pass { stepDebugLogLevel: false } to keep it as it is.

Reading inputs

Every accessor shares one absence rule: the runner writes "" for an input the workflow omitted, and this package reads that the same as unset — missing data, not an empty value. An optional input needs Config.withDefault (or Config.option) at the call site:

import { ActionInput } from "@effected/github-actions";
import { Config, Effect } from "effect";

const program = Effect.gen(function* () {
  const dryRun = yield* ActionInput.boolean("dry-run").pipe(Config.withDefault(false));
  const paths = yield* ActionInput.list("paths").pipe(Config.withDefault([]));
  return { dryRun, paths };
});
// dryRun: boolean; paths: readonly string[] — [] when the input was omitted

list accepts a JSON array, a bullet list, or comma- and newline-separated values, with full-line # comments dropped — whichever shape a workflow author reaches for first. A present but malformed value (dry-run: yes instead of a YAML 1.2 boolean) is a different class from an absent one: it fails carrying its actual and is never silently swallowed by a default.

The token bridge

GitHubToken shapes GitHub App authentication like the three-phase workflow it runs inside: mint in pre, use in main, revoke in post. Nothing survives between phases except what GITHUB_STATE carries, so an installation token — which lives about an hour — is persisted rather than held in a Scope:

import { GitHubToken } from "@effected/github-actions";
import { Effect, Redacted } from "effect";

// pre:
const pre = GitHubToken.provision({
  appId: "123456",
  privateKey: Redacted.make(process.env.APP_PRIVATE_KEY as string),
  owner: "acme",
  required: { contents: "write", pull_requests: "write" },
});

// main: bind once — layers memoize by reference
const ClientLayer = GitHubToken.clientLayer();

// post:
const post = GitHubToken.dispose();

GitHubToken.read fails typed with reason: "expired" rather than handing back a token GitHub will answer with a bare 401 — the credential that could re-mint one is the app's private key, and persisting that through a plaintext GITHUB_STATE file would trade a one-hour token for a permanent one.

Secrets

Secret is the only place in this package a Redacted value becomes a plain string, and masking and declassification are the same call — every member registers the value with the runner's ::add-mask:: filter before returning plaintext:

import { Secret } from "@effected/github-actions";
import { Effect } from "effect";

declare const token: import("effect/Redacted").Redacted<string>;

const program = Effect.gen(function* () {
  const env = yield* Secret.forChildEnv({ MY_TOKEN: token });
  // every value in `env` is already masked in the runner log
  return env;
});

The runner's cache, artifacts and OIDC

ActionCache and Artifact speak the Actions Twirp v2 protocol directly — no @actions/cache or @actions/artifact dependency, and both are excluded from ActionRuntime.layer on purpose, so a consumer that only sets an output never links the blob transport:

import { ActionCache, CacheKey } from "@effected/github-actions";
import { Effect, Option } from "effect";

const program = Effect.gen(function* () {
  const cache = yield* ActionCache;
  const key = CacheKey.of("Linux", "pnpm-store", "abc123");
  const hit = yield* cache.restore(["~/.pnpm-store"], key);
  if (Option.isNone(hit)) {
    yield* cache.save(["~/.pnpm-store"], key);
  }
});

await Action.run(program, { layer: ActionCache.layer });

CacheKey.withNamespace(segment) is the cache-bust case — a run that must match nothing an unbusted run wrote, and whose own entries must be invisible to unbusted runs:

import { CacheKey } from "@effected/github-actions";

const key = CacheKey.of("Linux", "pnpm-store", "abc123").withNamespace("bust7");
console.log(key.key, key.restoreKeys);
// bust7-Linux-pnpm-store-abc123 []

Two decisions make that safe for any segment value, with no prefix reasoning at the call site. The segment goes first, so the namespaced key shares no prefix with an unnamespaced one — a restore key is a prefix match, and folding a bust token in later leaves an ordinary run's rung prefix-matching busted entries. And the ladder is dropped, so no rung reaches outside the namespace even when the segment happens to equal an ordinary leading segment. It is a safe default rather than a prohibition: follow with withRestoreDepths for a deliberate in-namespace ladder.

CacheKey.hashFiles is byte-compatible with @actions/glob's hashFiles, and OidcTokenIssuer.claims decodes the runner's OIDC token for a SLSA provenance predicate without verifying its signature — the token arrived over TLS from the runner's own token service, so the transport is the trust boundary and nothing here branches on the claims for authorization.

ActionsProvenance.capture turns those claims into an @effected/sbom SlsaProvenance predicate, and ActionsIdentityToken.layer serves @effected/oidc's narrow IdentityToken contract, which that package's signer consumes, from the same issuer — the inversion that keeps the Actions runtime out of every consumer that only wants to emit an SBOM:

import { ActionsIdentityToken, ActionsProvenance, OidcTokenIssuer } from "@effected/github-actions";
import { SigstoreSigner } from "@effected/sbom";
import { Effect, Layer } from "effect";

const program = Effect.gen(function* () {
  const provenance = yield* ActionsProvenance.capture();
  return provenance.runDetails.builder.id;
});
// the builder id, derived from the workflow ref in the runner's own claims

const SigningLayer = SigstoreSigner.layer.pipe(
  Layer.provide(ActionsIdentityToken.layer),
  Layer.provide(OidcTokenIssuer.layer),
);

An OidcTokenError passes through capture untouched: whether an unattested publish is allowed is the action's policy, not this package's. reason: "unavailable" almost always means the workflow is missing permissions: id-token: write.

Reporting on GitHub surfaces

The other half of an action's job is saying what happened — on a pull request comment, a check-run summary or the job summary. GitHubMarkdown writes those bodies. Every member takes pre-rendered markdown and returns a string, but the structure around it goes through @effected/markdown's serializer rather than string joining, so a cell carrying >=1 || <2 escapes its pipes instead of shifting every column after it. tableFor goes further and takes the table's whole shape from a row schema:

import { GitHubMarkdown } from "@effected/github-actions";
import { Schema } from "effect";

const Row = Schema.Struct({
  name: Schema.String.annotate({ title: "Check" }),
  detail: Schema.String,
});

console.log(GitHubMarkdown.tableFor(Row).render([{ name: "build", detail: "clean" }]));
// | Check | detail |
// | --- | --- |
// | build | clean |

Column order is field declaration order, each header is the field's title annotation, and each cell is the field's encoded form — so a typed field projects through its own codec, and a row cannot transpose columns because it is an object rather than a positional array.

ManagedDocument owns named regions inside text a human also edits: a sentinel HTML comment identifies the document, marker comments delimit each region, and everything outside them survives byte-for-byte. Regions are replaced from current state rather than appended, which is what makes a sticky comment safe to re-render. CheckDocument puts a debounced reconciler on top — report a check as its state changes, and a background fiber projects the registry onto the document and writes it through a narrow sink:

import { CheckDocument, CheckReport } from "@effected/github-actions";
import { Effect } from "effect";

const program = Effect.gen(function* () {
  const doc = yield* CheckDocument;
  yield* doc.report("build", CheckReport.make({ state: "running" }));
  yield* doc.report("build", CheckReport.make({ state: "pass", outcome: "clean" }));
  return yield* doc.flush;
});
// "written"   — one write carrying the final state
// "unchanged" — the render was byte-identical to the last one, so nothing was sent
// "stale"     — a newer run owns the document; this pass was dropped (see below)

The debounce is trailing with a max-wait, so a burst of reports coalesces into one write carrying the final state while a steady stream still surfaces progress.

A region can also carry metadata: withRegions takes [key, content, meta] triples, the pairs ride the region's own marker, and entry(key) reads them back verbatim. Metadata survives a writer that knows nothing about it — a region a call does not name keeps its content and its metadata — and never takes part in addressing a region, so changing it updates that region in place rather than growing a second one.

CheckDocument uses exactly that to survive two runs writing one document — a re-run overlapping the delayed run it replaced. Give the layer this run's stamp and a sink that can read as well as write, and each pass reconciles against the live document instead of a private shadow of what this process last wrote:

import { CheckDocument } from "@effected/github-actions";
import type { Effect } from "effect";

declare const startedAt: string;
declare const runId: string;
declare const readComment: Effect.Effect<string | undefined>;
declare const writeComment: (text: string) => Effect.Effect<void>;

const layer = CheckDocument.layer({
  namespace: "release-bot",
  key: "checks",
  render: (checks) => [...checks].map(([name, report]) => [name, report.state] as const),
  sink: { write: writeComment, read: readComment },
  stamp: { at: startedAt, runId }, // a per-run constant — mint it once at startup
});

Every region the run writes then carries its at and runId, and a pass whose stamp is strictly older than the newest stamp already on the document is dropped rather than written — flush answers "stale" and the reconciler logs the drop once, at the transition. Equal stamps pass, so a run always may refine its own regions. Keeping the stamp constant is what preserves write suppression: the same run rendering the same state still produces byte-identical text.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @effected/github-actions

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229