We want to upload files to SharePoint as part of CI/CD in Github (Actions). I've found how to do this using REST api, but that requires username/password. Also bearer tokens work, but we need a separate call to get them and that in turn requires username/password
Is it possible to get some kind of permanent token (I've already created an app only access token) and use it directly in the REST call?
So basically the question is: how can I upload a file to sharepoint using HTTP calls and without username/password?