From 8cb832b6357a007e5760b5be7925f07de5c12ad4 Mon Sep 17 00:00:00 2001 From: Daniel Hart | ALifeInArtifyAI <238904666+projectedanx@users.noreply.github.com> Date: Tue, 7 Jul 2026 00:47:23 +1000 Subject: [PATCH] Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Daniel Hart | ALifeInArtifyAI <238904666+projectedanx@users.noreply.github.com> --- .github/workflows/update-translations.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/update-translations.yml b/.github/workflows/update-translations.yml index 15f7d164d..fcc9c4a0e 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/update-translations.yml @@ -6,6 +6,9 @@ on: - '*' workflow_dispatch: +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -58,6 +61,9 @@ jobs: name: Submit updated translations if: ${{ github.event_name == 'workflow_dispatch' && github.repository == 'YOURLS/YOURLS' }} runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write needs: - translations-check steps: