fix: use tmp/ instead of secrets/
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2023-09-18 22:30:02 +05:30
parent 06a376115a
commit 457ec1603a
Signed by: realaravinth
GPG key ID: F8F50389936984FF
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View file

@ -12,5 +12,5 @@ __pycache__/
src/secrets/** src/secrets/**
dist/ dist/
out/ out/
secrets/ tmp/
coverage/ coverage/

View file

@ -29,7 +29,7 @@ readonly FORGEJO_USER1_PASSWORD=supercomplicatedpassword
readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org" readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org"
readonly FORGEJO_USER1_SUPPORT_REPO="support" readonly FORGEJO_USER1_SUPPORT_REPO="support"
readonly FORGEJO_USER1_ACCESS_TOKEN_NAME="coreaccesstoken" readonly FORGEJO_USER1_ACCESS_TOKEN_NAME="coreaccesstoken"
readonly FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath secrets/user1-accesstoken.json) readonly FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json)
rm $FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH || true rm $FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH || true
readonly FORGEJO_TESTUSER_USERNAME=test_user readonly FORGEJO_TESTUSER_USERNAME=test_user

View file

@ -3,7 +3,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
import Forgejo from "./index"; import Forgejo from "./index";
import authtoken from "../secrets/user1-accesstoken.json"; import authtoken from "../tmp/user1-accesstoken.json";
const forgeoUrl = authtoken["forgejo_url"]; const forgeoUrl = authtoken["forgejo_url"];
const token = authtoken["sha1"]; const token = authtoken["sha1"];