diff --git a/.gitea/workflows/production-deploy.yml b/.gitea/workflows/production-deploy.yml index 1f3c6640..8344acd1 100644 --- a/.gitea/workflows/production-deploy.yml +++ b/.gitea/workflows/production-deploy.yml @@ -36,10 +36,10 @@ jobs: REF_NAME="main" fi - # Use Gitea token if available, otherwise try public access - if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then + # Use CI token if available, otherwise try public access + if [ -n "${{ secrets.CI_TOKEN }}" ]; then git clone --depth 1 --branch "$REF_NAME" \ - "https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ + "https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ /workspace/repo else # Try public HTTPS (works if repository is public) @@ -123,10 +123,10 @@ jobs: REF_NAME="main" fi - # Use Gitea token if available, otherwise try public access - if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then + # Use CI token if available, otherwise try public access + if [ -n "${{ secrets.CI_TOKEN }}" ]; then git clone --depth 1 --branch "$REF_NAME" \ - "https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ + "https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ /workspace/repo else # Try public HTTPS (works if repository is public) @@ -216,10 +216,10 @@ jobs: REF_NAME="main" fi - # Use Gitea token if available, otherwise try public access - if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then + # Use CI token if available, otherwise try public access + if [ -n "${{ secrets.CI_TOKEN }}" ]; then git clone --depth 1 --branch "$REF_NAME" \ - "https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ + "https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ /workspace/repo else # Try public HTTPS (works if repository is public) diff --git a/.gitea/workflows/security-scan.yml b/.gitea/workflows/security-scan.yml index 72a3972a..db8549ea 100644 --- a/.gitea/workflows/security-scan.yml +++ b/.gitea/workflows/security-scan.yml @@ -24,10 +24,10 @@ jobs: REF_NAME="main" fi - # Use Gitea token if available, otherwise try public access - if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then + # Use CI token if available, otherwise try public access + if [ -n "${{ secrets.CI_TOKEN }}" ]; then git clone --depth 1 --branch "$REF_NAME" \ - "https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ + "https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \ /workspace/repo else # Try public HTTPS (works if repository is public)