mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 18:36:17 +03:00
43b185e1c1
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: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
25 lines
685 B
YAML
25 lines
685 B
YAML
name: Release drafter
|
|
|
|
on:
|
|
push:
|
|
# branches to consider in the event; optional, defaults to all
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update_release_draft:
|
|
permissions:
|
|
contents: write # for release-drafter/release-drafter to create a github release
|
|
pull-requests: write # for release-drafter/release-drafter to add label to PR
|
|
if: github.repository == 'python-pillow/Pillow'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Drafts your next release notes as pull requests are merged into "main"
|
|
- uses: release-drafter/release-drafter@v5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|