Skip to content

Review Permissions for the "Issue Trigger" workflow #8336

@t-will-gillis

Description

@t-will-gillis

Overview

We need to change the permissions for the default GITHUB_TOKEN from read/write to read only per GitHub's recommendation for security best practice.

Action Items

Open file issue-trigger.yml.

  • Near the top of the file immediately before the line jobs: insert:
      # Set defaults for GITHUB_TOKEN
      permissions:
        contents: read
        issues: read
    
  • Trigger the workflow to confirm whether it runs with no further changes.

If there are errors:

  • Check which step of the workflow failed occurred and the reason for the failure in the workflow logs.
  • Research which permissions the API action requires. Many of the actions need issues: write, so you can change issues: read to issues: write on the line above and rerun.
  • Continue adding permissions back to the workflow until there are no errors.

Note that any workflow steps that include a personal access token (i.e. HACKFORLA_BOT_PA_TOKEN, etc.) do not need any changes.

Resources/Instructions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In progress (actively working)

Relationships

None yet

Development

No branches or pull requests

Issue actions