opengisch / qgis-plugin-ci

Let it package and release your QGIS plugin and do something funnier instead!
https://opengisch.github.io/qgis-plugin-ci/
GNU General Public License v3.0
51 stars 17 forks source link

Support for plugin repository tokens #285

Open m-kuhn opened 7 months ago

m-kuhn commented 7 months ago

plugins.qgis.org now supports tokens, see https://github.com/qgis/QGIS-Django/pull/326 It would be great to have support for this in here to use scoped tokens rather than personal access credentials for uploading plugins

Guts commented 7 months ago

Sure!

Same for embedding the license file.

Guts commented 6 days ago

Hi @Xpirix,

Can you share us some documentation (md, OpenAPI JSON/YAML...) where we can find details about the POST request required to work those API token please?

Xpirix commented 5 days ago

Hi @Guts

Please find some POST request templates at https://github.com/qgis/QGIS-Django/blob/master/readme.md#token-based-authentication. Please let me know if you need more specific details.

Guts commented 5 days ago

Thanks @Xpirix!

I was thinking about something like swagger but I think we can move on for now with this example.

Is there a development or test instance of plugins.qgis.org on which to base our unit tests in CI/CD to check if publishing works as expected?

Xpirix commented 5 days ago

Yes, swagger is a good idea. I will try to implement it along with the incoming resources hub API.

Please find the unit test for this feature at: https://github.com/qgis/QGIS-Django/blob/master/qgis-app/plugins/tests/test_token_auth.py

Guts commented 5 days ago

Yes, swagger is a good idea. I will try to implement it along with the incoming resources hub API.

It would be really appreciated! Do you want to me creating an issue?

Xpirix commented 3 days ago

Yes please, thank you.

Guts commented 1 day ago

Yes please, thank you.

Done in https://github.com/qgis/QGIS-Django/issues/473