Skip to content

Commit dd6c56e

Browse files
committed
Add Universe 2022 workshop folder outline
Create a CodeQL query pack structure, with a dependency on the standard CodeQL Ruby library pack. Add a placeholder README, to be filled in later with the workshop details.
1 parent c385141 commit dd6c56e

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

workshop-2022/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CodeQL workshop for Ruby: Finding open URL redirection vulnerabilities
2+

workshop-2022/codeql-pack.lock.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
dependencies:
3+
codeql/ruby-all:
4+
version: 0.4.2
5+
codeql/ssa:
6+
version: 0.0.1
7+
compiled: false
8+
lockVersion: 1.0.0

workshop-2022/codeql-pack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: githubuniverseworkshops/codeql-workshop-2022-ruby
2+
version: 0.0.1
3+
dependencies:
4+
codeql/ruby-all: '0.4.2'

workshop-2022/example.ql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @name Empty block
3+
* @kind problem
4+
* @problem.severity warning
5+
* @id ruby/example/empty-block
6+
*/
7+
8+
import ruby
9+
import codeql.ruby.AST
10+
11+
from Block b
12+
where b.getNumberOfStatements() = 0
13+
select b, "This is an empty block."

0 commit comments

Comments
 (0)