react-native-macos/.github
Varun Sharma 3da3d82320 ci: Add GitHub token permissions for workflows (#34122)
Summary:
This PR adds minimum token permissions for the GITHUB_TOKEN using https://github.com/step-security/secure-workflows.

GitHub recommends defining minimum GITHUB_TOKEN permissions for securing GitHub Actions workflows
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
- https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
- The Open Source Security Foundation (OpenSSF) [Scorecards](https://github.com/ossf/scorecard) treats not setting token permissions as a high-risk issue

This project is part of the top 100 critical projects as per OpenSSF (https://github.com/ossf/wg-securing-critical-projects), so fixing the token permissions to improve security.

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>

## Changelog
[General] [Security] - Add GitHub token permissions for workflows
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

Pull Request resolved: https://github.com/facebook/react-native/pull/34122

Test Plan: N/A

Reviewed By: cipolleschi

Differential Revision: D37597988

Pulled By: cortinico

fbshipit-source-id: 2f45914e2202a7b5bf7fa60b019dd12cdcf31952
2022-07-04 03:41:44 -07:00
..
ISSUE_TEMPLATE Fix broken `ISSUE_TEMPLATE` due to extra `:` (#33892) 2022-05-23 09:17:31 -07:00
workflows ci: Add GitHub token permissions for workflows (#34122) 2022-07-04 03:41:44 -07:00
CODEOWNERS Added @matt-oakes as CODEOWNER of the ESLint package (#27689) 2020-01-06 16:13:30 -08:00
ISSUE_TEMPLATE.md Issues without any template will get closed (#27996) 2020-02-07 17:55:52 -08:00
PULL_REQUEST_TEMPLATE.md Make the link easier to copy. (#28516) 2020-04-03 11:52:35 -07:00
SUPPORT.md Fix reactiflux url (#30709) 2021-01-14 14:58:10 -08:00
respond-to-issue-based-on-label.yml Remove action to close upgrade-related issues 2021-10-25 10:48:22 -07:00