Fix Tauri icons + clarify fine-grained PAT permissions
Two release-blocking fixes for v3.0.0. ## Tauri build was failing on every platform tauri.conf.json referenced icons/32x32.png, icons/128x128.png, icons/128x128@2x.png, icons/icon.icns, icons/icon.ico — none of which existed. release_desktop.yml therefore failed at the bundle step on all three runners. Generated a 1024×1024 placeholder source PNG (blue panel + white "I" glyph for Itch.io) and ran `tauri icon` to populate src-tauri/icons/ with the full standard set: the 5 desktop assets the conf needs, plus the Windows Store / iOS / Android sizes Tauri's CLI emits by default (harmless to ship; useful if the project ever targets mobile). The 1024×1024 source itself is added to src-tauri/.gitignore — only the generated icons are committed. Replacing the placeholder later is just `npm run tauri icon -- path/to/new-source.png` + commit. ## Fine-grained PAT was getting 403 on workflow_dispatch Settings page hint told users to give the PAT contents:write + workflow:write. workflow:write controls editing .github/workflows/*.yml files (which the webapp doesn't do); the actual call we make, POST /actions/workflows/{file}/dispatches, requires Actions: Write instead. Fine-grained PATs created from that hint hit 403; classic PATs worked because the classic `workflow` scope happens to cover both. Rewrote the hint as a checklist: - Contents: Read and write (edits / deletes / queueing URLs) - Actions: Read and write (dispatching the scraper workflow) plus a note that classic `workflow` tokens still work but grant broader access. SECURITY.md was already correct on this from the v3.0.0 docs pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/target/
|
||||
/gen/
|
||||
Cargo.lock
|
||||
icon-source.png
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 554 B |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 782 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 820 B |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
</adaptive-icon>
|
||||
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 689 B |
|
After Width: | Height: | Size: 887 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 699 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#fff</color>
|
||||
</resources>
|
||||
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 452 B |
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 994 B |
|
After Width: | Height: | Size: 585 B |
|
After Width: | Height: | Size: 843 B |
|
After Width: | Height: | Size: 843 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
@@ -201,15 +201,29 @@ export default function Settings() {
|
||||
onChange={(e) => setPatInput(e.target.value)}
|
||||
placeholder="github_pat_..."
|
||||
/>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Fine-grained token with{' '}
|
||||
<span className="font-mono">contents:write</span> +{' '}
|
||||
<span className="font-mono">workflow:write</span> on{' '}
|
||||
<span className="font-mono">
|
||||
{REPO.owner}/{REPO.name}
|
||||
</span>
|
||||
.
|
||||
</p>
|
||||
<div className="space-y-1 text-xs text-muted-foreground">
|
||||
<p>
|
||||
Fine-grained token scoped to only{' '}
|
||||
<span className="font-mono">
|
||||
{REPO.owner}/{REPO.name}
|
||||
</span>
|
||||
, with these repository permissions:
|
||||
</p>
|
||||
<ul className="ml-4 list-disc space-y-0.5">
|
||||
<li>
|
||||
<span className="font-mono">Contents</span>: Read and write — required for
|
||||
edits, deletes, and queueing URLs.
|
||||
</li>
|
||||
<li>
|
||||
<span className="font-mono">Actions</span>: Read and write — required to
|
||||
dispatch the scraper workflow from Add / Workflows.
|
||||
</li>
|
||||
</ul>
|
||||
<p className="pt-1">
|
||||
Classic tokens with the <span className="font-mono">workflow</span> scope also
|
||||
work but grant access to every repo you can write to.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label htmlFor="pass">Passphrase</Label>
|
||||
|
||||