From 56c0bf93e531a3a0dd8e2ba80307f740fccc4056 Mon Sep 17 00:00:00 2001 From: aconite33 Date: Mon, 30 Mar 2026 14:20:08 -0600 Subject: [PATCH 1/8] ci: add CLA workflow --- .github/workflows/cla.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..05a0594 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,39 @@ +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + CLAAssistant: + runs-on: ubuntu-latest + steps: + - name: Generate token from GitHub App + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: blacklanternsecurity + repositories: CLA + + - name: "CLA Assistant" + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }} + with: + path-to-signatures: "signatures/version1/cla.json" + path-to-document: "https://github.com/blacklanternsecurity/CLA/blob/main/ICLA.md" + branch: "main" + allowlist: "dependabot[bot],github-actions[bot],renovate[bot]" + remote-organization-name: "blacklanternsecurity" + remote-repository-name: "CLA" From eb41fe34a2bcdd565d28f4c58185a741613b3854 Mon Sep 17 00:00:00 2001 From: aconite33 Date: Mon, 30 Mar 2026 16:37:59 -0600 Subject: [PATCH 2/8] ci: add org members to CLA allowlist --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 05a0594..825a076 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -34,6 +34,6 @@ jobs: path-to-signatures: "signatures/version1/cla.json" path-to-document: "https://github.com/blacklanternsecurity/CLA/blob/main/ICLA.md" branch: "main" - allowlist: "dependabot[bot],github-actions[bot],renovate[bot]" + allowlist: "dependabot[bot],github-actions[bot],renovate[bot],aconite33,adeemm,ausmaster,bbot-deploy,blsaccess,blscode,en0f,GabKodes,holsick,jackpas23,kerrymilan,kevinoriley,liquidsec,lunarcowboy,MarcusAmes,Mercury0,MrBlackout20,Nasaltron,oversiemulated,pentestpop,pjhartlieb,RReski,shart123456,SpamFaux,stryker2k2,Sw3d1shPh1sh,TheFunky1Markimark,theo2612,TheTechromancer,TMDeal" remote-organization-name: "blacklanternsecurity" remote-repository-name: "CLA" From 251ac3a6c76ad83e7fdeca3cde69508fc4a9cefa Mon Sep 17 00:00:00 2001 From: aconite33 Date: Mon, 30 Mar 2026 16:43:48 -0600 Subject: [PATCH 3/8] ci: use dynamic org membership check for CLA --- .github/workflows/cla.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 825a076..462636a 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -24,8 +24,23 @@ jobs: owner: blacklanternsecurity repositories: CLA + - name: Check org membership + id: membership + if: github.event_name == 'pull_request_target' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + AUTHOR="${{ github.event.pull_request.user.login }}" + if gh api "orgs/blacklanternsecurity/members/$AUTHOR" > /dev/null 2>&1; then + echo "is_member=true" >> "$GITHUB_OUTPUT" + else + echo "is_member=false" >> "$GITHUB_OUTPUT" + fi + - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + if: | + (steps.membership.outputs.is_member != 'true') && + ((github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target') uses: contributor-assistant/github-action@v2.6.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -34,6 +49,6 @@ jobs: path-to-signatures: "signatures/version1/cla.json" path-to-document: "https://github.com/blacklanternsecurity/CLA/blob/main/ICLA.md" branch: "main" - allowlist: "dependabot[bot],github-actions[bot],renovate[bot],aconite33,adeemm,ausmaster,bbot-deploy,blsaccess,blscode,en0f,GabKodes,holsick,jackpas23,kerrymilan,kevinoriley,liquidsec,lunarcowboy,MarcusAmes,Mercury0,MrBlackout20,Nasaltron,oversiemulated,pentestpop,pjhartlieb,RReski,shart123456,SpamFaux,stryker2k2,Sw3d1shPh1sh,TheFunky1Markimark,theo2612,TheTechromancer,TMDeal" + allowlist: "dependabot[bot],github-actions[bot],renovate[bot]" remote-organization-name: "blacklanternsecurity" remote-repository-name: "CLA" From 5b4d463434ad2116fc4159f3156c63c1d93a71c3 Mon Sep 17 00:00:00 2001 From: aconite33 Date: Mon, 30 Mar 2026 21:18:08 -0600 Subject: [PATCH 4/8] fix: use org-scoped app token for reliable CLA membership check --- .github/workflows/cla.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 462636a..8300a05 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -22,21 +22,34 @@ jobs: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} owner: blacklanternsecurity - repositories: CLA - name: Check org membership id: membership - if: github.event_name == 'pull_request_target' env: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | - AUTHOR="${{ github.event.pull_request.user.login }}" - if gh api "orgs/blacklanternsecurity/members/$AUTHOR" > /dev/null 2>&1; then + if [ "${{ github.event_name }}" = "pull_request_target" ]; then + AUTHOR="${{ github.event.pull_request.user.login }}" + else + PR_NUM="${{ github.event.issue.number }}" + AUTHOR=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUM" --jq '.user.login' 2>/dev/null) + fi + if [ -n "$AUTHOR" ] && gh api "orgs/blacklanternsecurity/members/$AUTHOR" > /dev/null 2>&1; then echo "is_member=true" >> "$GITHUB_OUTPUT" else echo "is_member=false" >> "$GITHUB_OUTPUT" fi + - name: Skip CLA for org members + if: steps.membership.outputs.is_member == 'true' && github.event_name == 'pull_request_target' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api --method POST "repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }}" \ + -f state=success \ + -f context="CLAAssistant" \ + -f description="CLA check skipped — author is an org member" + - name: "CLA Assistant" if: | (steps.membership.outputs.is_member != 'true') && From 014be8e85375e17f40320743a90e56e605ba2854 Mon Sep 17 00:00:00 2001 From: aconite33 Date: Tue, 31 Mar 2026 08:31:10 -0600 Subject: [PATCH 5/8] fix: disable lock-pullrequest-aftermerge in CLA workflow --- .github/workflows/cla.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 8300a05..bb9c379 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -65,3 +65,4 @@ jobs: allowlist: "dependabot[bot],github-actions[bot],renovate[bot]" remote-organization-name: "blacklanternsecurity" remote-repository-name: "CLA" + lock-pullrequest-aftermerge: "false" From 34aa707e1b35fffdd34d8f2de22233c73ccb85fe Mon Sep 17 00:00:00 2001 From: aconite33 Date: Wed, 1 Apr 2026 13:54:47 -0600 Subject: [PATCH 6/8] update CLA workflow: API-based bot detection, check all committers, reduce permissions --- .github/workflows/cla.yml | 59 +++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index bb9c379..3fadea2 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -6,8 +6,6 @@ on: types: [opened, closed, synchronize] permissions: - actions: write - contents: write pull-requests: write statuses: write @@ -23,36 +21,67 @@ jobs: private-key: ${{ secrets.APP_PRIVATE_KEY }} owner: blacklanternsecurity - - name: Check org membership - id: membership + - name: Check all committers against org and allowlist + id: cla-check env: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | if [ "${{ github.event_name }}" = "pull_request_target" ]; then - AUTHOR="${{ github.event.pull_request.user.login }}" + PR_NUM="${{ github.event.pull_request.number }}" else PR_NUM="${{ github.event.issue.number }}" - AUTHOR=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUM" --jq '.user.login' 2>/dev/null) - fi - if [ -n "$AUTHOR" ] && gh api "orgs/blacklanternsecurity/members/$AUTHOR" > /dev/null 2>&1; then - echo "is_member=true" >> "$GITHUB_OUTPUT" - else - echo "is_member=false" >> "$GITHUB_OUTPUT" fi - - name: Skip CLA for org members - if: steps.membership.outputs.is_member == 'true' && github.event_name == 'pull_request_target' + COMMITTERS=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUM/commits" --paginate --jq '.[].author.login' | sort -u) + ALL_EXEMPT=true + + for LOGIN in $COMMITTERS; do + # treat commits with no associated GitHub login as non-exempt + if [ -z "$LOGIN" ] || [ "$LOGIN" = "null" ]; then + echo "Unknown committer (no GitHub login) — not exempt" + ALL_EXEMPT=false + break + fi + + EXEMPT=false + + # check if account type is Bot (GitHub App accounts) + AUTHOR_TYPE=$(gh api "users/${LOGIN}" --jq '.type' 2>/dev/null || echo "Unknown") + if [ "$AUTHOR_TYPE" = "Bot" ]; then + echo "$LOGIN is a Bot account — exempt" + EXEMPT=true + fi + + # check org membership + if [ "$EXEMPT" = "false" ]; then + if gh api "orgs/blacklanternsecurity/members/$LOGIN" > /dev/null 2>&1; then + echo "$LOGIN is an org member — exempt" + EXEMPT=true + fi + fi + + if [ "$EXEMPT" = "false" ]; then + echo "$LOGIN is not exempt — CLA required" + ALL_EXEMPT=false + break + fi + done + + echo "all_exempt=$ALL_EXEMPT" >> "$GITHUB_OUTPUT" + + - name: Skip CLA when all committers are exempt + if: steps.cla-check.outputs.all_exempt == 'true' && github.event_name == 'pull_request_target' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh api --method POST "repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }}" \ -f state=success \ -f context="CLAAssistant" \ - -f description="CLA check skipped — author is an org member" + -f description="CLA check skipped — all committers are org members or bots" - name: "CLA Assistant" if: | - (steps.membership.outputs.is_member != 'true') && + (steps.cla-check.outputs.all_exempt != 'true') && ((github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target') uses: contributor-assistant/github-action@v2.6.1 env: From c213dd9ad0bda341697a520309ff1768e4ffd1a8 Mon Sep 17 00:00:00 2001 From: Shane Engelman Date: Mon, 28 Sep 2026 09:25:12 -0700 Subject: [PATCH 7/8] docs: relicense from GPL-3.0 to AGPL-3.0 `webcap` is a Black Lantern original, so this is the copyright holder relicensing its own work. The notices carry `either version 3 of the License, or (at your option) any later version`, and GPLv3 section 13 already permits AGPLv3 interoperation, so making the AGPL grant explicit needs no contributor sign-off. The program name and copyright line already filled in on the old appendix are carried over verbatim, so the file is the AGPL-3.0 text with this repository's attribution rather than a byte copy of `bbot`. The manifest moves in the same commit. A tree that ships an AGPL-3.0 file next to a manifest naming something else is self-contradictory at the point a packager reads it: `pyproject.toml`. Refs #151 --- LICENSE | 147 ++++++++++++++++++++++--------------------------- pyproject.toml | 2 +- 2 files changed, 68 insertions(+), 81 deletions(-) diff --git a/LICENSE b/LICENSE index 37c471f..9fb9524 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -7,17 +7,15 @@ Preamble - The GNU General Public License is a free, copyleft license for -software and other kinds of works. + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to +our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. +software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. The precise terms and conditions for copying, distribution and modification follow. @@ -72,7 +60,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU General Public License. + "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single +under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General +Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's +versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found. Copyright (C) 2024 TheTechromancer @ Black Lantern Security This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by + it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + GNU Affero General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see +For more information on this, and how to apply and follow the GNU AGPL, see . - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/pyproject.toml b/pyproject.toml index bfa6fda..639f75c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "An ultra-lightweight web screenshot tool written in Python" authors = ["TheTechromancer"] repository = "https://github.com/blacklanternsecurity/webcap" homepage = "https://github.com/blacklanternsecurity/webcap" -license = "GPL-v3.0" +license = "AGPL-3.0" readme = "README.md" keywords = ["python", "cli", "web", "screenshot", "osint", "ocr", "bug-bounty", "bugbounty", "headless", "web-browser", "scanner", "python-library", "hacking", "pentesting", "recon"] classifiers = [ From 14b5ad4737efc925a07317d394db216db0335825 Mon Sep 17 00:00:00 2001 From: Shane Engelman Date: Sat, 3 Oct 2026 04:24:57 -0700 Subject: [PATCH 8/8] ci(cla): pin runner to ubuntu-24.04 ubuntu-latest moves on GitHub's schedule (bbot-enterprise#149). --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 3fadea2..1a83f13 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -11,7 +11,7 @@ permissions: jobs: CLAAssistant: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Generate token from GitHub App id: app-token