diff --git a/.github/workflows/api-publish.yml b/.github/workflows/api-publish.yml index 7c62663..4c91949 100644 --- a/.github/workflows/api-publish.yml +++ b/.github/workflows/api-publish.yml @@ -31,8 +31,8 @@ jobs: - name: Publish to GitHub Packages run: ./gradlew publishNewRelease env: - KEKLIST_REPO_USER: ${{ vars.KEKLIST_USER }} - KEKLIST_REPO_PASSWORD: ${{ secrets.KEKLIST_PASSWORD }} + KEKLIST_REPO_USER: ${{ vars.KEKLIST_REPO_USER }} + KEKLIST_REPO_PASSWORD: ${{ secrets.KEKLIST_REPO_PASSWORD }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }} diff --git a/.github/workflows/crowding-delete-branch.yml b/.github/workflows/crowding-delete-branch.yml index 86c331d..89dd6e8 100644 --- a/.github/workflows/crowding-delete-branch.yml +++ b/.github/workflows/crowding-delete-branch.yml @@ -2,6 +2,10 @@ name: Translations on: workflow_dispatch # [delete, workflow_dispatch] +permissions: + contents: write + pull-requests: write + jobs: delete-old: runs-on: ubuntu-latest @@ -23,6 +27,6 @@ jobs: command: 'branch delete ${{ steps.gh_branch.outputs.branch }}' command_args: '-l uk --method tm --branch main' env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 1df29b6..f6aa005 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -5,6 +5,10 @@ on: - 'src/main/resources/assets/lang/en-us.json' workflow_dispatch: +permissions: + contents: write + pull-requests: write + jobs: upload: runs-on: ubuntu-latest @@ -33,7 +37,7 @@ jobs: project_id: ${{ vars.CROWDIN_PROJECT_ID }} token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}