percy-common 3.1.8 → 3.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daf5d5179a57be833d015e4d87092e2725622c8762f199d4cee9655fc1989508
4
- data.tar.gz: aebf200ac7329d26c1e848dd5ba2967ab7ed7d87767c6e2f59e587fb3b448a00
3
+ metadata.gz: 20fd33d4a3d42879af016aa1b430c8ffc30a60cc0e6a21d11802ca8be356ed10
4
+ data.tar.gz: 7f6b0985e23d8d5fa119368fec41c8cad4b245b43b5af8719a836291a4fe5044
5
5
  SHA512:
6
- metadata.gz: 583cba5530413ec3d418409a67cc78b881109f79aff5ed7d70191d6bb53f15b54835adf815de95f273c85cce1bfa4bf30d233adef4f340e1a9b3ef2670f7ecac
7
- data.tar.gz: 1bbea03cfeb84ebde6fb7d9d3fdafa58b56a33e6f81420fcf794ee383c7d6abb44fa3147d3a879db720a1bc4434706a578603f8397c47a0e652bed9bf1cb5fd4
6
+ metadata.gz: '085195fa3fb6106f55fe5bbf293ea86c9ede6c6906a524ee3d9b3b4be639b413104a3fbfee29e19105666833979506935d9ca7b8b4b2e61a457c17c6fa5c1021'
7
+ data.tar.gz: d070dd279370f9155561e25d09b57ffc97fac1ae93bdcad41a39ca340a7e193126e48167f64a4e9e91bd4c1329bb16f9b409bb40d3a88ba97e3dcf5a8ccbf2f8
@@ -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()
data/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ * @percy/percy-product-reviewers
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Common
3
- VERSION = '3.1.8'.freeze
3
+ VERSION = '3.1.9'.freeze
4
4
  end
5
5
  end
@@ -10,9 +10,9 @@ module Percy
10
10
  class ServerDown < RuntimeError; end
11
11
  class OpenPortNotFound < RuntimeError; end
12
12
 
13
- def self.random_open_port
13
+ def self.random_open_port(min_port: MIN_PORT, max_port: MAX_PORT)
14
14
  MAX_PORT_ATTEMPTS.times do
15
- port = rand(MIN_PORT..MAX_PORT)
15
+ port = rand(min_port..max_port)
16
16
  return port if port_open? port
17
17
  end
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.8
4
+ version: 3.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-04 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dogstatsd-ruby
@@ -156,10 +156,12 @@ extensions: []
156
156
  extra_rdoc_files: []
157
157
  files:
158
158
  - ".buildkite/pipeline.yml"
159
+ - ".github/workflows/Semgrep.yml"
159
160
  - ".gitignore"
160
161
  - ".rspec"
161
162
  - ".rubocop.yml"
162
163
  - ".rubocop_todo.yml"
164
+ - CODEOWNERS
163
165
  - Dockerfile
164
166
  - Gemfile
165
167
  - Guardfile
@@ -199,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
201
  - !ruby/object:Gem::Version
200
202
  version: '0'
201
203
  requirements: []
202
- rubygems_version: 3.1.2
204
+ rubygems_version: 3.0.3.1
203
205
  signing_key:
204
206
  specification_version: 4
205
207
  summary: Server-side common library for Percy.