From d52460834a830c3bbee291ed622057006751580c Mon Sep 17 00:00:00 2001 From: m Date: Sat, 19 Sep 2026 18:42:51 +0200 Subject: [PATCH] fix pipeline --- .gitea/workflows/ci.yml | 15 +++++++++++++++ .gitea/workflows/release.yml | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3b9b0b8..621995b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -23,6 +23,9 @@ on: tags: ["v*"] pull_request: +permissions: + contents: read + env: GO_VERSION: "1.26" ANDROID_IMAGE: cimg/android:2024.01-node @@ -41,6 +44,8 @@ jobs: run: apk add --no-cache nodejs git - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/cache@v4 with: @@ -63,6 +68,8 @@ jobs: container: ${{ env.ANDROID_IMAGE }} steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/cache@v4 with: path: | @@ -89,6 +96,8 @@ jobs: run: apk add --no-cache nodejs git - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/cache@v4 with: path: | @@ -107,6 +116,8 @@ jobs: container: ${{ env.ANDROID_IMAGE }} steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/cache@v4 with: path: | @@ -127,6 +138,8 @@ jobs: run: apk add --no-cache nodejs git - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - run: | export VERSION="$(cat VERSION)" CGO_ENABLED=0 GOOS=linux go build \ @@ -162,6 +175,8 @@ jobs: run: apk add --no-cache nodejs git - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - name: Login registre Gitea env: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cbca2a0..9c61a88 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -18,6 +18,9 @@ on: push: tags: ["v*"] +permissions: + contents: read + env: ANDROID_IMAGE: cimg/android:2024.01-node DOCKERHUB_IMAGE: docker.io/thirdshop/kasier @@ -30,6 +33,8 @@ jobs: container: ${{ env.ANDROID_IMAGE }} steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/cache@v4 with: path: | @@ -94,6 +99,8 @@ jobs: run: apk add --no-cache nodejs git - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - name: Login registre Gitea env: