Skip to content

Commit

Permalink
Merge pull request Pycord-Development#239 from BobDotCom/master
Browse files Browse the repository at this point in the history
License Updates and Code Vulnerability Checking
  • Loading branch information
BobDotCom authored Oct 1, 2021
2 parents 13094aa + 646572d commit 534f773
Show file tree
Hide file tree
Showing 106 changed files with 278 additions and 102 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '26 6 * * 6'

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

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
6 changes: 3 additions & 3 deletions discord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
A basic wrapper for the Discord API.
:copyright: (c) 2015-present Rapptz
:copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development
:license: MIT, see LICENSE for more details.
"""

__title__ = 'discord'
__author__ = 'Rapptz'
__author__ = 'Pycord Development'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015-present Rapptz'
__copyright__ = 'Copyright 2015-2021 Rapptz & Copyright 2021-present Pycord Development'
__version__ = '2.0.0a'

__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Expand Down
3 changes: 2 additions & 1 deletion discord/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/abc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/activity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
1 change: 1 addition & 0 deletions discord/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
1 change: 1 addition & 0 deletions discord/app/commands.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
1 change: 1 addition & 0 deletions discord/app/context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
3 changes: 2 additions & 1 deletion discord/appinfo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/audit_logs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/backoff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
1 change: 1 addition & 0 deletions discord/bot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
3 changes: 2 additions & 1 deletion discord/channel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/colour.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/components.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/context_managers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/embeds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/emoji.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
An extension module to facilitate creation of bot commands.
:copyright: (c) 2015-present Rapptz
:copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development
:license: MIT, see LICENSE for more details.
"""

Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/_types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/bot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/cog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/context.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/converter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/cooldowns.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/core.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
3 changes: 2 additions & 1 deletion discord/ext/commands/flags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
Loading

0 comments on commit 534f773

Please sign in to comment.