Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/actionify/mod.ts>commands.setSecret

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function commands.setSecret
import { commands } from "https://deno.land/x/actionify@0.3.0/mod.ts";
const { setSecret } = commands;

Masking a value prevents a string or variable from being printed in the log. Each masked word separated by whitespace is replaced with the * character. You can use an environment variable or string for the mask's value. When you mask a value, it is treated as a secret and will be redacted on the runner. For example, after you mask a value, you won't be able to set that value as an output.

import { step, commands } from 'https://deno.land/x/actionify@0.3.0/mod.ts';

const exampleStep = step()
  .run([
    commands.setSecret('$SOME_SECRET'),
    commands.setSecret('hide me'),
  ]);

Parameters

value: ExpressionValue

Returns

Command<DefaultCommandTypes>