Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .codeclimate.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CodeQL
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: CodeQL
runs-on:
group: organization/Default
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ruby
build-mode: none
- name: Analyze
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: /language:ruby
23 changes: 21 additions & 2 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Validations

on: [push]
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pubnub-yml:
Expand All @@ -24,9 +29,23 @@ jobs:
- name: Cancel workflow runs for commit on error
if: failure()
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
rubocop:
name: RuboCop
runs-on:
group: organization/Default
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.3
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
all-validations:
name: Validations
needs: [pubnub-yml]
needs: [pubnub-yml, rubocop]
runs-on:
group: organization/Default
steps:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Vulnerability scan
on:
push:
branches:
- master
- main

jobs:
security:
runs-on:
group: organization/Default
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Snyk monitor for vulnerabilities
run: snyk monitor --org=sdk --file=Gemfile.lock
env:
SNYK_TOKEN: ${{ secrets.SNYK_SDK_TOKEN }}
7 changes: 6 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
inherit_from: .rubocop_todo.yml

@jguz-pubnub jguz-pubnub Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These offenses in .rubocop-todo.yml are technical debt and should be fixed over time. The codebase should be improved gradually, and because of the scope of the changes, this PR does not cover that.


AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.0
Exclude:
- 'spec/**/*'
- 'examples/**/*'
- 'vendor/**/*'
- 'lib/pubnub/crypto.rb'
- 'lib/pubnub/format.rb'


Metrics/ClassLength:
Max: 150

Metrics/LineLength:
Layout/LineLength:
Max: 150

Metrics/AbcSize:
Expand Down
Loading
Loading