-
-
Notifications
You must be signed in to change notification settings - Fork 152
Update from main #1406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
Update from main #1406
Conversation
Mainly for no-search servers
Deploying phanpy with
|
| Latest commit: |
b4003e0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d837b4f1.phanpy.pages.dev |
| Branch Preview URL: | https://main.phanpy.pages.dev |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
phanpy | b4003e0 | Commit Preview URL Branch Preview URL |
Jan 16 2026, 06:56 PM |
This comment has been minimized.
This comment has been minimized.
* New translations (German) * Update catalogs.json * New translations (Polish) --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Use warning icon for content warning in composer - Put icons back to the post meta - Use moon icon for Quiet Public, so it's consistent with Mastodon's
Only for small sizes
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| if: github.repository == 'cheeaun/phanpy' | ||
| concurrency: | ||
| group: rollbar-deploy | ||
| cancel-in-progress: true | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: "npm" | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| - name: Get commit info | ||
| id: commit | ||
| run: | | ||
| COMMIT_HASH=$(git rev-parse --short HEAD) | ||
| echo "version=$COMMIT_HASH" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Gather source map paths | ||
| id: maps | ||
| run: | | ||
| set -e | ||
| # Find all .js.map files under dist and produce a space-separated list | ||
| SOURCE_MAPS=$(find dist -type f -name '*.js.map' -print | tr '\n' ' ' | sed -E 's/ $//' || true) | ||
| if [ -z "$SOURCE_MAPS" ]; then | ||
| echo "No source maps found under dist" | ||
| echo "source_maps=" >> $GITHUB_OUTPUT | ||
| echo "minified_urls=" >> $GITHUB_OUTPUT | ||
| exit 0 | ||
| fi | ||
|
|
||
| # Derive minified URLs from each map file. Preserve path under `dist`. | ||
| HOST_BASE="https://dev.phanpy.social" | ||
| MINIFIED_URLS="" | ||
| for map_path in $SOURCE_MAPS; do | ||
| rel_path=${map_path#dist/} | ||
| minified_rel_path=${rel_path%.map} | ||
| if [ -z "$MINIFIED_URLS" ]; then | ||
| MINIFIED_URLS="$HOST_BASE/$minified_rel_path" | ||
| else | ||
| MINIFIED_URLS="$MINIFIED_URLS $HOST_BASE/$minified_rel_path" | ||
| fi | ||
| done | ||
|
|
||
| echo "source_maps=$SOURCE_MAPS" >> $GITHUB_OUTPUT | ||
| echo "minified_urls=$MINIFIED_URLS" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Deploy to Rollbar | ||
| uses: rollbar/github-deploy-action@2.1.2 | ||
| env: | ||
| ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }} | ||
| with: | ||
| environment: "development" | ||
| version: ${{ steps.commit.outputs.version }} | ||
| source_maps: ${{ steps.maps.outputs.source_maps }} | ||
| minified_urls: ${{ steps.maps.outputs.minified_urls }} |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 days ago
To fix the problem, we should explicitly set the GITHUB_TOKEN permissions for this workflow/job to the minimum required. This workflow only needs to read the repository contents (for actions/checkout and to access the code being built). It does not create or modify issues, PRs, releases, or contents, so contents: read is sufficient.
The best fix is to add a permissions block at the job level under rollbar-deploy: so it applies only to this job without affecting any other jobs that might be added later. Concretely, in .github/workflows/rollbar-deploy.yml, insert:
permissions:
contents: readindented to align with if:, concurrency:, and runs-on:. No additional imports or methods are needed because this is a configuration-only change.
-
Copy modified lines R11-R12
| @@ -8,6 +8,8 @@ | ||
| jobs: | ||
| rollbar-deploy: | ||
| if: github.repository == 'cheeaun/phanpy' | ||
| permissions: | ||
| contents: read | ||
| concurrency: | ||
| group: rollbar-deploy | ||
| cancel-in-progress: true |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…r-FR,gl-ES,he-IL,it-IT,ja-JP,kab,ko-KR,lt-LT,nb-NO,nl-NL,oc-FR,pl-PL,pt-BR,pt-PT,ru-RU,th-TH,tok,tr-TR,uk-UA,zh-CN,zh-TW) (#1414) * New translations (German) * New translations (Spanish) * New translations (Polish) * New translations (French) * New translations (Arabic) * New translations (Catalan) * New translations (Czech) * New translations (Basque) * New translations (Finnish) * New translations (Hebrew) * New translations (Italian) * New translations (Japanese) * New translations (Korean) * New translations (Lithuanian) * New translations (Dutch) * New translations (Portuguese) * New translations (Russian) * New translations (Turkish) * New translations (Ukrainian) * New translations (Chinese Simplified) * New translations (Chinese Traditional) * New translations (Galician) * New translations (Portuguese, Brazilian) * New translations (Persian) * New translations (Thai) * New translations (Esperanto) * New translations (Norwegian Bokmal) * New translations (Occitan) * New translations (Kabyle) * New translations (Toki Pona) * Update catalogs.json --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
📦 Bundle Size Report
|
* New translations (Catalan) * New translations (Galician) * New translations (Italian) * New translations (Spanish)
This is an automated pull request to update from branch main