devise_masquerade 2.1.5 → 2.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12249cac77636a1f1a78ca80d034d2503da1ef6b027716de2574edc52320e061
4
- data.tar.gz: 17f61840c09c65fdf7094005c3f0aec2f288fb3e54fd0a82243bab2f5c8cad24
3
+ metadata.gz: 145b9b98124a0c8b287d968fd82397b1868e332d86b68168f166d2eee11a5a22
4
+ data.tar.gz: f261d51e39690087981dd276691488801de1c029cfbc3e6d6f28988fbbd2542a
5
5
  SHA512:
6
- metadata.gz: 003fc161d5bbf6c0e863656d93852d7182659178f96b0ebbf1a727c7ecfe3250341f1161e209d7f3043d39111339f60c94794def6632140de7594dc05c7d5d6a
7
- data.tar.gz: f55e5af3381c5be54944015489f216a818257721a6fea09725cbfb63e66c616f31e7f9093126f1755c2f9cbaa6b84f8c47d02442cc027018df4719f236d53096
6
+ metadata.gz: 230af3d8893659daebfe1ab9d641a4f8ae5067b839f3954977bd85e91a81f2938812b4fdee019eac87f0e1e9e94ed5e3525d4a7c17d65105da992eac325b094a
7
+ data.tar.gz: 78b65a1e433b15a1d04247cc8ee8316889138a4c51463c64afd0320f558f0114264d79127a1f987c02ad8ac4bc9db5e892611717c5bf46cd167addb2a357b0df
@@ -3,42 +3,48 @@
3
3
 
4
4
  name: Brakeman Scan
5
5
 
6
- # This section configures the trigger for the workflow. Feel free to customize depending on your convention
7
6
  on:
8
7
  push:
9
8
  branches: [ "master", "main" ]
10
9
  pull_request:
11
10
  branches: [ "master", "main" ]
12
11
 
12
+ permissions:
13
+ contents: read
14
+
13
15
  jobs:
14
16
  brakeman-scan:
15
17
  name: Brakeman Scan
16
18
  runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: read
21
+ security-events: write
22
+ actions: read
17
23
  steps:
18
- # Checkout the repository to the GitHub Actions runner
19
24
  - name: Checkout
20
25
  uses: actions/checkout@v4
21
26
 
22
- # Customize the ruby version depending on your needs
23
27
  - name: Setup Ruby
24
28
  uses: ruby/setup-ruby@v1
25
29
  with:
26
30
  ruby-version: '3.2'
27
31
 
28
32
  - name: Setup Brakeman
29
- env:
30
- BRAKEMAN_VERSION: '4.10' # SARIF support is provided in Brakeman version 4.10+
31
- run: |
32
- gem install brakeman --version $BRAKEMAN_VERSION
33
+ run: gem install brakeman
33
34
 
34
- # Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis
35
+ # Scan the dummy Rails app. The gem root is not a Rails application, so
36
+ # `brakeman .` exits before writing SARIF. --no-exit-on-warn/error keeps
37
+ # findings in the report instead of failing the job.
35
38
  - name: Scan
36
- continue-on-error: true
37
39
  run: |
38
- brakeman -f sarif -o output.sarif.json .
40
+ brakeman --path spec/dummy \
41
+ -f sarif \
42
+ -o output.sarif.json \
43
+ --no-exit-on-warn \
44
+ --no-exit-on-error
39
45
 
40
- # Upload the SARIF file generated in the previous step
41
46
  - name: Upload SARIF
42
47
  uses: github/codeql-action/upload-sarif@v4
43
48
  with:
44
49
  sarif_file: output.sarif.json
50
+ category: brakeman
@@ -2,9 +2,16 @@ name: "Rubocop"
2
2
 
3
3
  on: push
4
4
 
5
+ permissions:
6
+ contents: read
7
+
5
8
  jobs:
6
9
  rubocop:
7
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ security-events: write
14
+ actions: read
8
15
  strategy:
9
16
  fail-fast: false
10
17
 
@@ -12,16 +19,15 @@ jobs:
12
19
  - name: Checkout repository
13
20
  uses: actions/checkout@v4
14
21
 
15
- # If running on a self-hosted runner, check it meets the requirements
16
- # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
17
22
  - name: Set up Ruby
18
23
  uses: ruby/setup-ruby@v1
19
24
  with:
20
25
  ruby-version: 3.2
21
26
 
22
- # This step is not necessary if you add the gem to your Gemfile
27
+ # 0.6.1 maps last_column 0 to real_column; 0.3.0 emitted endColumn 0
28
+ # which github/codeql-action/upload-sarif@v4 rejects (must be >= 1).
23
29
  - name: Install Code Scanning integration
24
- run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
30
+ run: bundle add code-scanning-rubocop --version 0.6.1 --skip-install
25
31
 
26
32
  - name: Install dependencies
27
33
  run: bundle install
@@ -33,7 +39,32 @@ jobs:
33
39
  [[ $? -ne 2 ]]
34
40
  "
35
41
 
42
+ - name: Normalize SARIF columns
43
+ run: |
44
+ python3 - <<'PY'
45
+ import json
46
+ from pathlib import Path
47
+ path = Path("rubocop.sarif")
48
+ data = json.loads(path.read_text())
49
+
50
+ def fix(node):
51
+ if isinstance(node, dict):
52
+ for key in ("startColumn", "endColumn"):
53
+ value = node.get(key)
54
+ if isinstance(value, int) and value < 1:
55
+ node[key] = 1
56
+ for value in node.values():
57
+ fix(value)
58
+ elif isinstance(node, list):
59
+ for item in node:
60
+ fix(item)
61
+
62
+ fix(data)
63
+ path.write_text(json.dumps(data))
64
+ PY
65
+
36
66
  - name: Upload Sarif output
37
67
  uses: github/codeql-action/upload-sarif@v4
38
68
  with:
39
69
  sarif_file: rubocop.sarif
70
+ category: rubocop
data/Gemfile CHANGED
@@ -6,7 +6,6 @@ gemspec
6
6
  group :test do
7
7
  gem 'activerecord', '>= 8.0.5.1'
8
8
  gem 'actionmailer', '>= 8.0.5.1'
9
- gem 'bson_ext', '~> 1.3'
10
9
  gem 'sqlite3', '>= 2.9.6'
11
10
 
12
11
  gem 'test-unit'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_masquerade (2.1.5)
4
+ devise_masquerade (2.1.6)
5
5
  devise (>= 4.7.0)
6
6
  globalid (>= 0.3.6)
7
7
  railties (>= 5.2.0)
@@ -61,9 +61,6 @@ GEM
61
61
  base64 (0.3.0)
62
62
  bcrypt (3.1.22)
63
63
  bigdecimal (4.1.3)
64
- bson (1.12.5)
65
- bson_ext (1.12.5)
66
- bson (~> 1.12.5)
67
64
  builder (3.3.0)
68
65
  byebug (13.0.0)
69
66
  reline (>= 0.6.0)
@@ -349,7 +346,6 @@ DEPENDENCIES
349
346
  activerecord (>= 8.0.5.1)
350
347
  addressable (>= 2.9.0)
351
348
  bcrypt (>= 3.1.22)
352
- bson_ext (~> 1.3)
353
349
  bundler (>= 2.0.0)
354
350
  capybara (>= 3.38.0)
355
351
  chromedriver-helper
@@ -1,3 +1,3 @@
1
1
  module DeviseMasquerade
2
- VERSION = '2.1.5'.freeze
2
+ VERSION = '2.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_masquerade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandr Korsak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-15 00:00:00.000000000 Z
11
+ date: 2026-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler