Commit 9473bc6b92
9473bc6b925f14ed758dd1843926991edf28d07b
parent: 2275c0696d
Unsigned
Alicia Sykes <alicia@omg.lol> · 2026-03-14 15:14 UTC
Updates versions for gh actions
Layout: unified · split
.github/workflows/pr-check.yml
+11 −10
| @@ -38,7 +38,7 @@ jobs: |
| 38 | 38 | run: python lib/checks/check-pr-meta.py |
| 39 | 39 | - name: Upload findings |
| 40 | 40 | if: always() |
| 41 | | uses: actions/upload-artifact@v5 |
| 41 | uses: actions/upload-artifact@v6 |
| 42 | 42 | with: |
| 43 | 43 | name: findings-compliance |
| 44 | 44 | path: /tmp/findings-compliance.json |
| @@ -83,7 +83,7 @@ jobs: |
| 83 | 83 | run: python lib/checks/check-additions.py |
| 84 | 84 | - name: Upload diff data |
| 85 | 85 | if: always() |
| 86 | | uses: actions/upload-artifact@v5 |
| 86 | uses: actions/upload-artifact@v6 |
| 87 | 87 | with: |
| 88 | 88 | name: pr-diff |
| 89 | 89 | path: | |
| @@ -92,7 +92,7 @@ jobs: |
| 92 | 92 | if-no-files-found: ignore |
| 93 | 93 | - name: Upload findings |
| 94 | 94 | if: always() |
| 95 | | uses: actions/upload-artifact@v5 |
| 95 | uses: actions/upload-artifact@v6 |
| 96 | 96 | with: |
| 97 | 97 | name: findings-data |
| 98 | 98 | path: /tmp/findings-data.json |
| @@ -113,7 +113,7 @@ jobs: |
| 113 | 113 | python-version: "3.12" |
| 114 | 114 | - run: pip install -q -r lib/requirements.txt |
| 115 | 115 | - name: Download diff data |
| 116 | | uses: actions/download-artifact@v5 |
| 116 | uses: actions/download-artifact@v7 |
| 117 | 117 | with: |
| 118 | 118 | name: pr-diff |
| 119 | 119 | path: /tmp |
| @@ -131,14 +131,14 @@ jobs: |
| 131 | 131 | run: python lib/checks/make-info-stats.py |
| 132 | 132 | - name: Upload repo stats |
| 133 | 133 | if: always() |
| 134 | | uses: actions/upload-artifact@v5 |
| 134 | uses: actions/upload-artifact@v6 |
| 135 | 135 | with: |
| 136 | 136 | name: repo-stats |
| 137 | 137 | path: /tmp/repo-stats.md |
| 138 | 138 | if-no-files-found: ignore |
| 139 | 139 | - name: Upload findings |
| 140 | 140 | if: always() |
| 141 | | uses: actions/upload-artifact@v5 |
| 141 | uses: actions/upload-artifact@v6 |
| 142 | 142 | with: |
| 143 | 143 | name: findings-project |
| 144 | 144 | path: /tmp/findings-project.json |
| @@ -155,20 +155,21 @@ jobs: |
| 155 | 155 | with: |
| 156 | 156 | python-version: "3.12" |
| 157 | 157 | - name: Download all findings |
| 158 | | uses: actions/download-artifact@v5 |
| 158 | uses: actions/download-artifact@v7 |
| 159 | 159 | with: |
| 160 | 160 | pattern: findings-* |
| 161 | 161 | path: /tmp/artifacts |
| 162 | 162 | merge-multiple: true |
| 163 | 163 | continue-on-error: true |
| 164 | 164 | - name: Download diff data |
| 165 | | uses: actions/download-artifact@v5 |
| 165 | uses: actions/download-artifact@v7 |
| 166 | 166 | with: |
| 167 | 167 | name: pr-diff |
| 168 | 168 | path: /tmp/artifacts |
| 169 | 169 | continue-on-error: true |
| 170 | 170 | - name: Download repo stats |
| 171 | | uses: actions/download-artifact@v5 |
| 171 | if: needs.submission-eligibility.result == 'success' |
| 172 | uses: actions/download-artifact@v7 |
| 172 | 173 | with: |
| 173 | 174 | name: repo-stats |
| 174 | 175 | path: /tmp/artifacts |
| @@ -181,7 +182,7 @@ jobs: |
| 181 | 182 | run: python lib/checks/format-comment.py |
| 182 | 183 | - name: Upload PR metadata |
| 183 | 184 | if: always() |
| 184 | | uses: actions/upload-artifact@v5 |
| 185 | uses: actions/upload-artifact@v6 |
| 185 | 186 | with: |
| 186 | 187 | name: pr-meta |
| 187 | 188 | path: /tmp/pr-meta/ |
.github/workflows/pr-comment.yml
+1 −1
| @@ -25,7 +25,7 @@ jobs: |
| 25 | 25 | - name: Download PR metadata |
| 26 | 26 | id: download |
| 27 | 27 | continue-on-error: true |
| 28 | | uses: actions/download-artifact@v5 |
| 28 | uses: actions/download-artifact@v7 |
| 29 | 29 | with: |
| 30 | 30 | name: pr-meta |
| 31 | 31 | path: pr-meta |
lib/checks/make-info-stats.py
+9
| @@ -479,6 +479,9 @@ def grade_android_stats(data): |
| 479 | 479 | |
| 480 | 480 | def fetch_ios_data(app_url): |
| 481 | 481 | """Fetch iOS app info.""" |
| 482 | # The API requires a country code in the URL path — insert /us/ if missing |
| 483 | if app_url and "apps.apple.com/app/" in app_url: |
| 484 | app_url = app_url.replace("apps.apple.com/app/", "apps.apple.com/us/app/", 1) |
| 482 | 485 | return _api_get(IOS_API_URL, params={"appStoreUrl": app_url}) |
| 483 | 486 | |
| 484 | 487 | |
| @@ -607,16 +610,22 @@ def main(): |
| 607 | 610 | data = fetch_android_data(args["android"]) |
| 608 | 611 | if data: |
| 609 | 612 | sections.append(("Android App", format_markdown(grade_android_stats(data)))) |
| 613 | else: |
| 614 | print(f"Failed to fetch Android data for {args['android']}", file=sys.stderr) |
| 610 | 615 | |
| 611 | 616 | if args["ios"]: |
| 612 | 617 | data = fetch_ios_data(args["ios"]) |
| 613 | 618 | if data: |
| 614 | 619 | sections.append(("iOS App", format_markdown(grade_ios_stats(data)))) |
| 620 | else: |
| 621 | print(f"Failed to fetch iOS data for {args['ios']}", file=sys.stderr) |
| 615 | 622 | |
| 616 | 623 | if args["tosdr"]: |
| 617 | 624 | data = fetch_tosdr_data(args["tosdr"]) |
| 618 | 625 | if data: |
| 619 | 626 | sections.append(("Privacy Policy", format_markdown(grade_tosdr_stats(data)))) |
| 627 | else: |
| 628 | print(f"Failed to fetch ToS;DR data for {args['tosdr']}", file=sys.stderr) |
| 620 | 629 | |
| 621 | 630 | if not sections: |
| 622 | 631 | sys.exit(0) |