Skip to main content
Module

x/actionify/mod.ts>c.setSecret

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
function c.setSecret
import { c } from "https://deno.land/x/actionify@0.2.0/mod.ts";
const { setSecret } = 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.2.0/mod.ts';

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

Parameters

value: ExpressionValue

Returns

Command<DefaultCommandTypes>