Skip to content

Spring 26 Changes and GitHub autoinclude - #36

Merged
kastnerp merged 10 commits into
mainfrom
dev
Jan 24, 2026
Merged

Spring 26 Changes and GitHub autoinclude#36
kastnerp merged 10 commits into
mainfrom
dev

Conversation

@kastnerp

Copy link
Copy Markdown
Member

No description provided.

@netlify

netlify Bot commented Jan 24, 2026

Copy link
Copy Markdown

Deploy Preview for sustainableurbansystems ready!

Name Link
🔨 Latest commit 8527f83
🔍 Latest deploy log https://app.netlify.com/projects/sustainableurbansystems/deploys/6975437547be06000841bc84
😎 Deploy Preview https://deploy-preview-36--sustainableurbansystems.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 60
Accessibility: 98
Best Practices: 92
SEO: 99
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@kastnerp
kastnerp merged commit 755f20a into main Jan 24, 2026
7 of 8 checks passed
content = nil
urls.each do |url|
begin
content = URI.open(url, "User-Agent" => "Jekyll").read

Check failure

Code scanning / CodeQL

Use of `Kernel.open` or `IO.read` or similar sinks with a non-constant value Critical

Call to URI.open with a non-constant value. Consider replacing it with URI().open.

Copilot Autofix

AI about 1 month ago

Replace URI.open(url, ...) with URI.parse(url).open(...) (equivalently URI(url).open(...)). This keeps current behavior (fetching remote README over HTTPS with headers) while avoiding the unsafe URI.open pattern that CodeQL flags.

In _plugins/github-profile-readme.rb, update the line inside fetch_readme where content is fetched (currently line 42 in the snippet). No new dependency is required since open-uri is already required and URI.parse is part of Ruby’s standard URI library behavior used alongside it.

Suggested changeset 1
_plugins/github-profile-readme.rb

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/_plugins/github-profile-readme.rb b/_plugins/github-profile-readme.rb
--- a/_plugins/github-profile-readme.rb
+++ b/_plugins/github-profile-readme.rb
@@ -39,7 +39,7 @@
       content = nil
       urls.each do |url|
         begin
-          content = URI.open(url, "User-Agent" => "Jekyll").read
+          content = URI.parse(url).open("User-Agent" => "Jekyll").read
           break if content && !content.strip.empty?
         rescue OpenURI::HTTPError, SocketError, Timeout::Error, Errno::ECONNRESET,
                Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH,
EOF
@@ -39,7 +39,7 @@
content = nil
urls.each do |url|
begin
content = URI.open(url, "User-Agent" => "Jekyll").read
content = URI.parse(url).open("User-Agent" => "Jekyll").read
break if content && !content.strip.empty?
rescue OpenURI::HTTPError, SocketError, Timeout::Error, Errno::ECONNRESET,
Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH,
Copilot is powered by AI and may make mistakes. Always verify output.
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.

2 participants