Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

ci: lock workflows to be triggered by the repo owner alone

Karim shoair1166ce33686e
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml
index ba4d6e9..2ff127e 100644
--- a/.github/workflows/docker-build.yml
+++ b/.github/workflows/docker-build.yml
@@ -19,7 +19,7 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
- if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}
+ if: ${{ github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.user.login == github.repository_owner) }}
permissions:
contents: read
packages: write
diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml
index d435088..d4936ce 100644
--- a/.github/workflows/release-and-publish.yml
+++ b/.github/workflows/release-and-publish.yml
@@ -9,7 +9,7 @@ on:
jobs:
create-release-and-publish:
- if: github.event.pull_request.merged == true
+ if: github.event.pull_request.merged == true && github.event.pull_request.user.login == github.repository_owner
runs-on: ubuntu-latest
environment:
name: PyPI