Skip to content

Commit bc5f213

Browse files
authored
Update codeql.yml
1 parent 04a8af8 commit bc5f213

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/codeql.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,15 @@ jobs:
7070
- name: Install Dependencies
7171
run: pnpm install
7272

73-
- name: Configure CodeQL Custom Queries
74-
id: query-config
73+
- name: Setup CodeQL Custom Queries
7574
run: |
76-
echo "Creating advanced CodeQL configuration for Next.js/tRPC..."
77-
78-
# Create custom queries directory
79-
mkdir -p .github/codeql/custom-queries
80-
81-
# Create qlpack.yml for custom queries
82-
cat > .github/codeql/custom-queries/qlpack.yml << 'QLPACKEOF'
75+
# Only create files if they don't exist
76+
if [ ! -d ".github/codeql/custom-queries" ]; then
77+
echo "Creating CodeQL custom queries..."
78+
mkdir -p .github/codeql/custom-queries
79+
80+
# Create qlpack.yml for custom queries
81+
cat > .github/codeql/custom-queries/qlpack.yml << 'QLPACKEOF'
8382
name: custom/security-queries
8483
version: 1.0.0
8584
dependencies:

0 commit comments

Comments
 (0)