You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/10/05 19:56:10 UTC

[GitHub] [nifi] boahc077 opened a new pull request, #6469: ci: add minimum GitHub token permissions for workflows

boahc077 opened a new pull request, #6469:
URL: https://github.com/apache/nifi/pull/6469

   ### Description
   This PR adds minimum token permissions for the GITHUB_TOKEN in GitHub Actions workflows using [secure-workflows](https://github.com/step-security/secure-workflows).
   
   The GitHub Actions workflow has a GITHUB_TOKEN with write access to multiple scopes. Here is an example of the permissions in one of the workflow runs:
   https://github.com/apache/nifi/actions/runs/3167551611/jobs/5158128990#step:1:19
   
   After this change, the scopes will be reduced to the minimum needed for the following workflows:
   
   - ci-workflow.yml
   - stale.yml
   - system-tests.yml
   
   
   ### Motivation and Context
   
   - This is a security best practice, so if the GITHUB_TOKEN is compromised due to a vulnerability or compromised Action, the damage will be reduced.
   - [GitHub recommends](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token) defining minimum GITHUB_TOKEN permissions.
   - The Open Source Security Foundation (OpenSSF) [Scorecards](https://github.com/ossf/scorecard) also treats not setting token permissions as a high-risk issue. This change will help increase the Scorecard score for this repository.
   
   Signed-off-by: Ashish Kurmi <ak...@stepsecurity.io>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nifi] exceptionfactory closed pull request #6469: NIFI-10575 add minimum GitHub token permissions for workflows

Posted by GitBox <gi...@apache.org>.
exceptionfactory closed pull request #6469: NIFI-10575 add minimum GitHub token permissions for workflows
URL: https://github.com/apache/nifi/pull/6469


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org