fix(security): use the --token argument of rna instead of basic auth (#75)

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/75
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-08-01 23:32:59 +00:00 committed by earl-warren
parent 777842e57f
commit ac7e1b6ea3
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
2 changed files with 7 additions and 7 deletions

View file

@ -121,7 +121,7 @@ maybe_use_release_note_assistant() {
curl --fail -s -S -o rna https://code.forgejo.org/forgejo/release-notes-assistant/releases/download/$RELEASE_NOTES_ASSISTANT_VERSION/release-notes-assistant
chmod +x ./rna
mkdir -p $RELEASE_NOTES_ASSISTANT_WORKDIR
./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR --storage release --storage-location "$TAG" --forgejo-url "$SCHEME"://placeholder:"$TOKEN"@"$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR --storage release --storage-location "$TAG" --token "$TOKEN" --forgejo-url "$SCHEME://$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
fi
}