Merge 1da511b4863b79ffc89b74a41e3d01de76d60e5e into 4d38424e6cbb32d07c74d3b4d760af7afb35742d

This commit is contained in:
Aaron Gokaslan 2025-03-20 22:08:28 +12:00 committed by GitHub
commit 4370092074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 72 additions and 0 deletions

28
.github/codeql/codeql-config.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: "Rclone CodeQL Config"
query-filters:
- exclude:
id: go/clear-text-logging
- exclude:
id: go/insecure-hostkeycallback
- exclude:
id: go/log-injection
- exclude:
id: go/path-injection
- exclude:
id: go/reflected-xss
- exclude:
id: go/request-forgery
- exclude:
id: go/unvalidated-url-redirection
- exclude:
id: go/xml/xpath-injection
#Uncomment to suppress more potential warnings
#- exclude:
# tags contain:
# - security
#- exclude:
#problem.severity:
#- warning
#- recommendation

44
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: "CodeQL"
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ go ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# config-file: ./.github/codeql/codeql-config.yml
#queries: +security-and-qualiy
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"