Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/versions/0.ts>c.setMask

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
function c.setMask
import { c } from "https://deno.land/x/actionify@0.2.0/versions/0.ts";
const { setMask } = c;

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.1.0/mod.ts';

const step = Step
  .create()
  .run([
    commands.setMask('$SOME_SECRET'),
    commands.setMask('hide me'),
  ]);

Parameters

value: ExpressionValue

Returns

Command<DefaultCommandTypes>