Skip to content

Commit

Permalink
Merge pull request #122 from hmac/codeql
Browse files Browse the repository at this point in the history
Enable CodeQL
  • Loading branch information
hmac authored Aug 19, 2021
2 parents d5a3c02 + 01f7ce9 commit 2cdee1a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ name: what
on: [push, pull_request]

jobs:
codeql:
runs-on: ubuntu-latest
env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES: true
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: ruby

- name: Perform CodeQL analysis
uses: github/codeql-action/[email protected]
with:
category: codeql/ruby/full

ci_with_rails_version:
runs-on: ubuntu-18.04

Expand Down
4 changes: 2 additions & 2 deletions lib/active_job/queue_adapters/what_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ActiveJob
module QueueAdapters
# ActiveJob adapter
class WhatAdapter
def enqueue(job) #:nodoc:
def enqueue(job) # :nodoc:
data = job.serialize
What.connection.enqueue(
job_class: WhatJobWrapper,
Expand All @@ -14,7 +14,7 @@ def enqueue(job) #:nodoc:
)
end

def enqueue_at(job, timestamp) #:nodoc:
def enqueue_at(job, timestamp) # :nodoc:
data = job.serialize
What.connection.enqueue(
job_class: WhatJobWrapper,
Expand Down

0 comments on commit 2cdee1a

Please sign in to comment.