GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Set read-only token permissions for GitHub Action workflows · Issue #778 · netty/netty-tcnative

Set read-only token permissions for GitHub Action workflows #778

New issue
Copy link
New issue
Copy link
Closed
#787
#779
Closed
Set read-only token permissions for GitHub Action workflows#778
#787
#779
Copy link
Milestone
2.0.60.Final

Description

@pnacht
pnacht
opened on Mar 20, 2023
Issue body actions

By default, GitHub workflows run with write-all permissions. This is dangerous, since it opens the project up to supply-chain attacks. GitHub itself recommends ensuring all workflows run with minimal permissions.

netty-tcnative's workflows are mainly used for testing. As such, they do not need such broad permissions.

This issue can be solved in two ways:

  • add top-level read-only permissions to all workflows, and then give additional job-level permissions as necessary; and/or
  • set the default token permissions to read-only in the repo settings.

I'll be sending a PR along with this issue that sets the top-level permissions as necessary.

If you instead (or also) wish to modify the default token permissions:

  1. Open the repo settings
  2. Go to Actions > General
  3. Under "Workflow permissions", set them to "Read repository contents and packages permissions"

If you wish to only modify the default token permissions, know that you'll need to modify any workflows that require additional permissions.


Disclosure: My name is Pedro and I work with Google and the Open Source Security Foundation (OpenSSF) to improve the supply-chain security of the open-source ecosystem.

Activity

  1. normanmaurer
    closed this as completedin #779on Mar 29, 2023
  2. normanmaurer
    added a commit that references this issue on Mar 29, 2023

    Set read-only permissions on GitHub workflows (#779)

    This issue will close once commit 020d8e4 is merged into the 'main' branch.
    020d8e4
  3. normanmaurer
    added this to the 2.0.60.Final milestone on Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 2.0.60.Final

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.