diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 09a587d..2c30609 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,6 @@ -.github/* @browserstack/asi-devs - +# CODEOWNERS uses last-match-wins precedence, so least-specific rules must come +# first. The broad catch-all is listed before the .github/** rule so that the +# latter is the *last* (winning) match for workflow/config files (SDK-6071). * @browserstack/automate-public-repos + +.github/** @browserstack/asi-devs diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2df264a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +# Dependabot configuration (SDK-6069) — keeps npm dependencies patched and +# surfaces transitive CVEs (e.g. the braces ReDoS) automatically going forward. +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + target-branch: "master" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + labels: + - "dependencies" + - "security" + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "master" + schedule: + interval: "weekly" + labels: + - "dependencies" + - "github-actions" + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/reviewing_changes.yml b/.github/workflows/reviewing_changes.yml index eec51e3..7a90fba 100644 --- a/.github/workflows/reviewing_changes.yml +++ b/.github/workflows/reviewing_changes.yml @@ -3,6 +3,12 @@ name: NodeJS Test workflow on workflow_dispatch +# Least-privilege default token scopes (SDK-6067). The job only needs to read +# the repo (checkout) and write check runs via github-script. +permissions: + contents: read + checks: write + on: workflow_dispatch: inputs: @@ -53,7 +59,7 @@ jobs: node-version: ${{ matrix.node }} - name: Install dependencies - run: npm install + run: npm ci - name: Run sample tests run: npm run sample-test