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

x/actionify/src/job.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/src/job.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