Skip to content

Commit 493142d

Browse files
authored
ci: build sponsor avatar URLs from the login to avoid HTML escaping (#2177)
1 parent d9e2827 commit 493142d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/sponsors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
file: README.md
7171
marker: gold
7272
minimum: 2500
73-
template: '<a href="https://github.com/{{ login }}"><img src="{{ avatarUrl }}" width="60px" alt="Gold sponsor: {{ login }}" /></a>'
73+
template: '<a href="https://github.com/{{ login }}"><img src="https://github.com/{{ login }}.png" width="60px" alt="Gold sponsor: {{ login }}" /></a>'
7474
fallback: '<em><a href="https://github.com/sponsors/0xERR0R">Become a gold sponsor</a> to appear here.</em>'
7575

7676
- name: Generate sponsors
@@ -81,7 +81,7 @@ jobs:
8181
file: README.md
8282
marker: sponsors
8383
maximum: 2499
84-
template: '<a href="https://github.com/{{ login }}"><img src="{{ avatarUrl }}" width="60px" alt="Sponsor: {{ login }}" /></a>'
84+
template: '<a href="https://github.com/{{ login }}"><img src="https://github.com/{{ login }}.png" width="60px" alt="Sponsor: {{ login }}" /></a>'
8585
fallback: '<em><a href="https://github.com/sponsors/0xERR0R">Become a sponsor</a> to appear here.</em>'
8686

8787
# Two independent failure modes, both of which otherwise leave this job

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Even a small recurring contribution makes a real difference and is hugely apprec
103103

104104
### 🥇 Gold sponsors
105105

106-
<!-- gold --><a href="https://github.com/GeoffreyvanOostveen"><img src="https://github.com/GeoffreyvanOostveen.png" width="60px" alt="Gold sponsor: GeoffreyvanOostveen" /></a> <!-- gold -->
106+
<!-- gold --><a href="https://github.com/GeoffreyvanOostveen"><img src="https://github.com/GeoffreyvanOostveen.png" width="60px" alt="Gold sponsor: GeoffreyvanOostveen" /></a><!-- gold -->
107107

108108
### Sponsors
109109

0 commit comments

Comments
 (0)