All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
pull_request:
types: [opened, synchronize, labeled, unlabeled, reopened]
pull_request:
types: [opened, synchronize, labeled, unlabeled, reopened]
+permissions:
+ contents: read
+
jobs:
build:
name: Changelog Entry Check
jobs:
build:
name: Changelog Entry Check
+permissions:
+ contents: read
+
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
release:
types: [published]
release:
types: [published]
+permissions:
+ contents: read
+
jobs:
docker:
if: github.repository == 'psf/black'
jobs:
docker:
if: github.repository == 'psf/black'
+permissions:
+ contents: read
+
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
release:
types: [published]
release:
types: [published]
+permissions:
+ contents: read
+
jobs:
build:
name: PyPI Upload
jobs:
build:
name: PyPI Upload
release:
types: [published]
release:
types: [published]
+permissions:
+ contents: read
+
+ permissions:
+ contents: write # for actions/upload-release-asset to upload release asset
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
+permissions:
+ contents: read
+
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run