mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +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>
32 lines
760 B
YAML
32 lines
760 B
YAML
name: Tidelift Align
|
|
on:
|
|
schedule:
|
|
- cron: "30 2 * * *" # daily at 02:30 UTC
|
|
push:
|
|
paths:
|
|
- "Pipfile*"
|
|
- ".github/workflows/tidelift.yml"
|
|
pull_request:
|
|
paths:
|
|
- "Pipfile*"
|
|
- ".github/workflows/tidelift.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository_owner == 'python-pillow'
|
|
name: Run Tidelift to ensure approved open source packages are in use
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Scan
|
|
uses: tidelift/alignment-action@main
|
|
env:
|
|
TIDELIFT_API_KEY: ${{ secrets.TIDELIFT_API_KEY }}
|
|
TIDELIFT_ORGANIZATION: team/aclark4life
|
|
TIDELIFT_PROJECT: pillow
|