forked from carabao-capital/devise-auth0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ad89e4
commit a2f9d1b
Showing
6 changed files
with
150 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: "Code Scanning" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '37 15 * * 3' | ||
|
||
jobs: | ||
codeql: | ||
name: CodeQL Scan | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 360 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ruby | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:ruby" | ||
|
||
rubocop: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Rubocop run | ||
run: | | ||
bash -c " | ||
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif | ||
[[ $? -ne 2 ]] | ||
" | ||
- name: Upload Sarif output | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: rubocop.sarif | ||
|
||
# brakeman-scan: | ||
# name: Brakeman Scan | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# security-events: write | ||
# actions: read | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Setup Ruby | ||
# uses: ruby/setup-ruby@v1 | ||
# with: | ||
# ruby-version: '3.0' | ||
|
||
# - name: Setup Brakeman | ||
# run: | | ||
# gem install brakeman | ||
|
||
# - name: Scan | ||
# continue-on-error: true | ||
# run: | | ||
# brakeman -f sarif -o brakeman.sarif.json . | ||
|
||
# - name: Upload SARIF | ||
# uses: github/codeql-action/upload-sarif@v2 | ||
# with: | ||
# sarif_file: brakeman.sarif.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require: | ||
- code_scanning | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
module Devise | ||
module Auth0 | ||
VERSION = "1.0.0".freeze | ||
VERSION = "1.0.0" | ||
|
||
class << self | ||
def gem_version | ||
|