[iobroker-bot] Migrate to NPM Trusted Publishing #465
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
German description can be found below
Deutsche Beschreibung befindet sich weiter unten
General information
This PR has been created by iobroker-bot. Please review the changes carefully and merge the PR if review is ok.
Feel free to contact me (@ioBroker-Bot) if you have any questions or feel that a PR is faulty. Please open a issue at repository https://github.com/ioBroker/ioBroker.repochecker to report a faulty PR.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence
Changes provided by this PR
This PR migrates the adapter to use NPM's Trusted Publishing feature, which provides a more secure way to publish packages without using long-lived NPM tokens.
Changes made:
Commented out
npm-tokenparameter: Thenpm-tokenparameter in theioBroker/testing-action-deploy@v1action has been commented out, as it's no longer needed with Trusted Publishing.Added required permissions: The workflow has been updated to include the necessary permissions for Trusted Publishing:
id-token: write- Required for OIDC token generationcontents: write- Required for the deployment actionBenefits:
Important information
Setting up Trusted Publishing at npmjs.com
To complete the migration to Trusted Publishing, you need to configure it in your NPM account. Follow these steps:
Log in to npmjs.com with an account that has publish rights for your package
Navigate to your package page:
Configure Trusted Publishing:
Scroll down to the "Publishing access" section
Click on "Automate publishing with GitHub Actions" or "Add trusted publisher"
Fill in the required information:
rg-engineering)ioBroker.ebus)test-and-release.yml(or the name of your release workflow)IMPORTANT INFORMATION
Save the configuration
Merge this PR and test the release process
Remove the NPM_TOKEN secret from your GitHub repository settings (optional, after confirming everything works)
For more information, see:
Deutsche Beschreibung
Migration zu NPM Trusted Publishing
Allgemeine Informationen
Dieser PR wurde durch iobroker-bot erstellt. Bitte die Änderungen sorgfältig überprüfen und den PR nach erfolgreicher Prüfung zusammenführen.
Bei Fragen oder wenn ein PR fehlerhaft erscheint, kann gerne Kontakt mit mir (@ioBroker-Bot) aufgenommen werden. Bitte ein Issue im Repository https://github.com/ioBroker/ioBroker.repochecker öffnen, um einen fehlerhaften PR zu melden.
Und VIELEN DANK für die Wartung dieses Adapters von mir und allen Nutzern.
Gemeinsam für das beste Nutzererlebnis arbeiten.
Euer
ioBroker Check and Service Bot
@mcm1957 zum Nachweis
Durch diesen PR bereitgestellte Änderungen
Dieser PR migriert den Adapter zur Nutzung der NPM Trusted Publishing Funktion, die eine sicherere Methode zur Veröffentlichung von Paketen ohne langlebige NPM-Token bietet.
Durchgeführte Änderungen:
Parameter
npm-tokenauskommentiert: Dernpm-tokenParameter in derioBroker/testing-action-deploy@v1Action wurde auskommentiert, da er mit Trusted Publishing nicht mehr benötigt wird.Erforderliche Berechtigungen hinzugefügt: Der Workflow wurde mit den notwendigen Berechtigungen für Trusted Publishing aktualisiert:
id-token: write- Erforderlich für die OIDC-Token-Generierungcontents: write- Erforderlich für die Deployment-ActionVorteile:
Wichtige Informationen
Einrichtung von Trusted Publishing bei npmjs.com
Um die Migration zu Trusted Publishing abzuschließen, muss die Funktion im NPM-Konto konfiguriert werden. Folgende Schritte durchführen:
Bei npmjs.com anmelden mit einem Konto, das Veröffentlichungsrechte für das Paket hat
Zur Paketseite navigieren:
Trusted Publishing konfigurieren:
Zum Abschnitt "Publishing access" scrollen
Auf "Automate publishing with GitHub Actions" oder "Add trusted publisher" klicken
Die erforderlichen Informationen ausfüllen:
rg-engineering)ioBroker.ebus)test-and-release.yml(oder der Name des Release-Workflows)WICHTIGE INFORMATION
Die Konfiguration speichern
Diesen PR zusammenführen und den Release-Prozess testen
Das NPM_TOKEN Secret entfernen aus den GitHub-Repository-Einstellungen (optional, nach Bestätigung der Funktionsfähigkeit)
Für weitere Informationen siehe:
Template: X0000-MigrateToTrustedPublishing