browserstack-cypress-cli 1.22.1 → 1.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/Semgrep.yml +48 -0
- package/bin/commands/runs.js +3 -0
- package/bin/helpers/constants.js +4 -1
- package/bin/helpers/timezone.json +1714 -0
- package/bin/helpers/utils.js +21 -0
- package/package.json +1 -1
- package/.nyc_output/2807648c-3b13-4cd1-b949-11ce1b846277.json +0 -1
- package/.nyc_output/48e04c5a-5723-4547-b9d6-20074786acab.json +0 -1
- package/.nyc_output/51e8de95-1005-492b-8e2f-d7c6fc9148e4.json +0 -1
- package/.nyc_output/577e3334-ad22-4b05-ac7f-e0038582bb25.json +0 -1
- package/.nyc_output/59cc8cf4-849a-4cb5-bc52-0133091e0584.json +0 -1
- package/.nyc_output/5fc28c76-8c92-44e9-9bae-ec2e85892509.json +0 -1
- package/.nyc_output/5fffbcf8-4572-45c7-948f-38aeb3421a3e.json +0 -1
- package/.nyc_output/6b02b68b-ad99-40ff-b34f-218d98a9c773.json +0 -1
- package/.nyc_output/6ec27c2e-3529-412c-a82b-d1b8970a52a5.json +0 -1
- package/.nyc_output/7540c691-20e7-4eb9-a21e-75f1b22fe6eb.json +0 -1
- package/.nyc_output/79dc2aeb-d682-45b3-8430-eea8b886e5ae.json +0 -1
- package/.nyc_output/processinfo/2807648c-3b13-4cd1-b949-11ce1b846277.json +0 -1
- package/.nyc_output/processinfo/48e04c5a-5723-4547-b9d6-20074786acab.json +0 -1
- package/.nyc_output/processinfo/51e8de95-1005-492b-8e2f-d7c6fc9148e4.json +0 -1
- package/.nyc_output/processinfo/577e3334-ad22-4b05-ac7f-e0038582bb25.json +0 -1
- package/.nyc_output/processinfo/59cc8cf4-849a-4cb5-bc52-0133091e0584.json +0 -1
- package/.nyc_output/processinfo/5fc28c76-8c92-44e9-9bae-ec2e85892509.json +0 -1
- package/.nyc_output/processinfo/5fffbcf8-4572-45c7-948f-38aeb3421a3e.json +0 -1
- package/.nyc_output/processinfo/6b02b68b-ad99-40ff-b34f-218d98a9c773.json +0 -1
- package/.nyc_output/processinfo/6ec27c2e-3529-412c-a82b-d1b8970a52a5.json +0 -1
- package/.nyc_output/processinfo/7540c691-20e7-4eb9-a21e-75f1b22fe6eb.json +0 -1
- package/.nyc_output/processinfo/79dc2aeb-d682-45b3-8430-eea8b886e5ae.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/log/usage.log +0 -11
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Name of this GitHub Actions workflow.
|
|
2
|
+
name: Semgrep
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Scan changed files in PRs (diff-aware scanning):
|
|
6
|
+
# The branches below must be a subset of the branches above
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: ["master", "main"]
|
|
9
|
+
push:
|
|
10
|
+
branches: ["master", "main"]
|
|
11
|
+
schedule:
|
|
12
|
+
- cron: '0 6 * * *'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
semgrep:
|
|
20
|
+
# User definable name of this GitHub Actions job.
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read # for actions/checkout to fetch code
|
|
23
|
+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
|
24
|
+
name: semgrep/ci
|
|
25
|
+
# If you are self-hosting, change the following `runs-on` value:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
|
|
28
|
+
container:
|
|
29
|
+
# A Docker image with Semgrep installed. Do not change this.
|
|
30
|
+
image: returntocorp/semgrep
|
|
31
|
+
|
|
32
|
+
# Skip any PR created by dependabot to avoid permission issues:
|
|
33
|
+
if: (github.actor != 'dependabot[bot]')
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
# Fetch project source with GitHub Actions Checkout.
|
|
37
|
+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
38
|
+
# Run the "semgrep ci" command on the command line of the docker image.
|
|
39
|
+
- run: semgrep ci --sarif --output=semgrep.sarif
|
|
40
|
+
env:
|
|
41
|
+
# Add the rules that Semgrep uses by setting the SEMGREP_RULES environment variable.
|
|
42
|
+
SEMGREP_RULES: p/default # more at semgrep.dev/explore
|
|
43
|
+
|
|
44
|
+
- name: Upload SARIF file for GitHub Advanced Security Dashboard
|
|
45
|
+
uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0
|
|
46
|
+
with:
|
|
47
|
+
sarif_file: semgrep.sarif
|
|
48
|
+
if: always()
|
package/bin/commands/runs.js
CHANGED
package/bin/helpers/constants.js
CHANGED
|
@@ -85,6 +85,8 @@ const userMessages = {
|
|
|
85
85
|
"Your build will run using Cypress <actualVersion> instead of Cypress <preferredVersion>.<frameworkUpgradeMessage> Read more about supported versions here: http://browserstack.com/docs/automate/cypress/supported-versions",
|
|
86
86
|
LOCAL_START_FAILED: "Local Testing setup failed.",
|
|
87
87
|
LOCAL_STOP_FAILED: "Local Binary stop failed.",
|
|
88
|
+
INVALID_TIMEZONE:
|
|
89
|
+
'The timezone specified is invalid. Refer to our documentation page https://www.browserstack.com/docs/automate/cypress/configure-timezones for the supported time zones.',
|
|
88
90
|
INVALID_LOCAL_MODE_WARNING:
|
|
89
91
|
'Invalid value specified for local_mode. local_mode: ("always-on" | "on-demand"). For more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference',
|
|
90
92
|
LOCAL_BINARY_ALREADY_RUNNING:
|
|
@@ -320,7 +322,8 @@ const allowedFileTypes = [
|
|
|
320
322
|
"pfx",
|
|
321
323
|
"cfr",
|
|
322
324
|
"ico",
|
|
323
|
-
"html"
|
|
325
|
+
"html",
|
|
326
|
+
"json5"
|
|
324
327
|
];
|
|
325
328
|
|
|
326
329
|
const filesToIgnoreWhileUploading = [
|