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

x/actionify/mod.ts>Job#permissions

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
method Job.prototype.permissions
import { Job } from "https://deno.land/x/actionify@0.3.0/mod.ts";

For a specific job, you can use jobs.<job_id>.permissions to modify the default permissions granted to the GITHUB_TOKEN, adding or removing access as required, so that you only allow the minimum required access. For more information, see "Authentication in a workflow."

By specifying the permission within a job definition, you can configure a different set of permissions for the GITHUB_TOKEN for each job, if required. Alternatively, you can specify the permissions for all jobs in the workflow.

Parameters

permissions: SetPermissions | false