Skip to content

ci security#1618

Draft
jchristgit wants to merge 4 commits into
mainfrom
ci-security
Draft

ci security#1618
jchristgit wants to merge 4 commits into
mainfrom
ci-security

Conversation

@jchristgit

Copy link
Copy Markdown
Contributor
  • Set dependency cooldown
  • Do not persist credentials from checkout
  • Prevent code injection via actions variables
  • Pin GitHub actions

@jchristgit jchristgit requested a review from a team June 4, 2026 19:30
@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploy Preview for pydis-static failed. Why did it fail? →

Name Link
🔨 Latest commit b68ade4
🔍 Latest deploy log https://app.netlify.com/projects/pydis-static/deploys/6a21d24bd6b4ca0008ff305d

@jchristgit

Copy link
Copy Markdown
Contributor Author

Hey Joe, can we fast track this?

echo "pr_source=$(jq -r '.head.label // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_WORKFLOW_RUN_ARTIFACTS_URL: ${{ github.event.workflow_run.artifacts_url }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does using an environment variable improve our security posture?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good morning Mark,

using an environment variable improves our security posture because it cements Python Discord's commitment to the environment. In times of massive energy expenditure by LLMs, it is important for us to make a statement on how we love the environment.

In other words, I have no idea. zizmor suggested it.

Comment thread .github/dependabot.yml
Comment on lines +13 to +14
cooldown:
default-days: 7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOOD change!

uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't even know it did this by default. Wow!

@jchristgit

jchristgit commented Jun 14, 2026

Copy link
Copy Markdown
Contributor Author

Hey Mark,

thanks, KING, for the review. Joe and Chris (named in reverse alphabetical order, not in order of preference) have mocked me when I brought this PR up - SAD! Clearly they don't understand that every second this is not merged, Python Discord Site is BLEEDING! I have already called up by second best man, one of my vice best men, maybe even the BEST - many contributors are saying this! - and he said "Mr. Rottweiler, what you are building, it is INCREDIBLE" - yet the RADICAL LEFT PYTHON DISCORD DEVOPS TEAM wants to CANCEL my suggestions, the ones I made for ABSOLUTELY NO COST to them - WHY? Is it because sleepy christopher (note the LOWERCASE, because he isn't as great as me!) wants our CI pipelines to be run by Claude instead, claiming that wrapping his prompts in XML tags will prevent any CI security issue ??? UTTERLY DERANGED! Sleepy christopher has known for years that he needs HUMAN intelligence to succeed, yet he continues to push ARTIFICIAL INTELLIGENCE, which is neither intelligent, nor has it produced ANYTHING of value! Matter of fact, I am about to go visit my GLORIOUS BATHROOM - I redid it after sleepy christopher moved out, because he has NO TASTE - and I am going to produce something similar to sleepy christopher's "intelligence" - A PILE OF POOP! But, in stark contrast to sleepy christopher's WASTEFUL, ENVIRONMENTALLY UNFRIENDLY pile of crap, which took a bunch of so-called "LLM architects" (WHAT THE FUCK DOES THIS MEAN?) to "build" (sitting in one of those hipster coffees with their computer named after a fruit), MY PILE OF CRAP IS USEFUL, because I am going to distribute it in my garden, and my plants will LOVE IT! Many plants are saying this - my yoghurt-filled, PERFECTLY ROUND stomach produces the VERY BEST dung! Sleepy christopher thinks I'm disgusting, but what I think is disgusting is his posture on security - and matter of fact, together with STINKY joe (he stinks so bad, REAL BAD!), they both have the working posture of a SHRIMP WITH SCOLIOSIS!

Thanks
- Johannes "Destructor" Christ

@jchristgit

Copy link
Copy Markdown
Contributor Author

By the way, SLOW pre-commit (slower than my BELOVED tortoise, Maxwell II), is complaining about an "issue" which makes NO SENSE - cooldown is a key set INDIVIDUALLY on each element of a "YAML" "list" - clearly, the so-called "PROGRAMMERS" behind said tool DON'T KNOW how to read a spec! Even my dog's breakfast is coded after a spec!

@GDWR

GDWR commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Hi, your pipeline is failing.

@wookie184

Copy link
Copy Markdown
Contributor

Super weird... apparently the CI is running on this commit 8bb2179 which is a broken merge (hence the duplicate key)...

But that's not the tip of the ci-security branch?? CI is running on a commit that doesn't appear anywhere in the UI??

@wookie184

Copy link
Copy Markdown
Contributor

OK, I see... on: pull_request runs on the merged result, bca2ce0 is already on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants