From 79d47eb4c377069189e4399ed54cc7da9e660144 Mon Sep 17 00:00:00 2001 From: Aakash Hotchandani Date: Wed, 10 Jun 2026 18:38:30 +0530 Subject: [PATCH 1/3] feat: Vanilla Python (python-generic) Automate sample --- .github/workflows/Semgrep.yml | 49 ----------------------------------- .gitignore | 5 ++++ .npmrc | 7 ----- CODEOWNERS | 1 - README.md | 3 +-- browserstack.yml | 26 +++++++++++++++++++ bstack_local_test.py | 19 ++++++++++++++ bstack_sample.py | 27 +++++++++++++++++++ requirements.txt | 3 +++ 9 files changed, 81 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/Semgrep.yml create mode 100644 .gitignore delete mode 100644 .npmrc delete mode 100644 CODEOWNERS create mode 100644 browserstack.yml create mode 100644 bstack_local_test.py create mode 100644 bstack_sample.py create mode 100644 requirements.txt diff --git a/.github/workflows/Semgrep.yml b/.github/workflows/Semgrep.yml deleted file mode 100644 index 5398af9..0000000 --- a/.github/workflows/Semgrep.yml +++ /dev/null @@ -1,49 +0,0 @@ -# Name of this GitHub Actions workflow. -name: Semgrep - -on: - # Scan changed files in PRs (diff-aware scanning): - # The branches below must be a subset of the branches above - pull_request: - branches: ["master", "main"] - push: - branches: ["master", "main"] - schedule: - - cron: '0 6 * * *' - - -permissions: - contents: read - -jobs: - semgrep: - # User definable name of this GitHub Actions job. - permissions: - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - name: semgrep/ci - # If you are self-hosting, change the following `runs-on` value: - runs-on: ubuntu-latest - - container: - # A Docker image with Semgrep installed. Do not change this. - image: returntocorp/semgrep - - # Skip any PR created by dependabot to avoid permission issues: - if: (github.actor != 'dependabot[bot]') - - steps: - # Fetch project source with GitHub Actions Checkout. - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - # Run the "semgrep ci" command on the command line of the docker image. - - run: semgrep ci --sarif --output=semgrep.sarif - env: - # Add the rules that Semgrep uses by setting the SEMGREP_RULES environment variable. - SEMGREP_RULES: p/default # more at semgrep.dev/explore - - - name: Upload SARIF file for GitHub Advanced Security Dashboard - uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0 - with: - sarif_file: semgrep.sarif - if: always() - diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3eba2a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +__pycache__ +.venv +env +local.log +log/ diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 33911e3..0000000 --- a/.npmrc +++ /dev/null @@ -1,7 +0,0 @@ -ignore-scripts=true -strict-ssl=true -save-exact=true -engine-strict=true -legacy-peer-deps=false -audit-level=high -access=public diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index c4a6041..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @browserstack/automate-public-repos \ No newline at end of file diff --git a/README.md b/README.md index ec650b5..736052f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# vanilla-python-browserstack -We require the following new public repositories under the browserstack GitHub organization to host customer-facing sample projects for the BrowserStack SDK. +# Vanilla Python with BrowserStack SDK diff --git a/browserstack.yml b/browserstack.yml new file mode 100644 index 0000000..589e25c --- /dev/null +++ b/browserstack.yml @@ -0,0 +1,26 @@ +userName: YOUR_USERNAME +accessKey: YOUR_ACCESS_KEY +projectName: BrowserStack Samples +buildName: browserstack build +buildIdentifier: '#${BUILD_NUMBER}' +# Vanilla Python (python-generic) — no test framework; run via `browserstack-sdk python