Skip to content

Commit

Permalink
Add CodeQL workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Droid00000 committed Nov 10, 2024
1 parent 0aecfeb commit 5e06994
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CodeQL"

on:
push:
branches: [ '1.0.0' ]
pull_request:
branches: [ '1.0.0' ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'ruby' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion src/frost/voice/play.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def voice_play(data)
end
end

data.bot.voice_connect(data.user.voice_channel)
data.bot.voice_connect(data.user.voice_channel) if data.bot.voice(data.server).nil?
end

0 comments on commit 5e06994

Please sign in to comment.