Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-3029

Find a better way to add the EBRAINS auth. token in Github Actions

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.2
    • None
    • TVB - maintain
    • 8.2 Pipeline Integration

    Description

      To run the Siibra tests using Github Actions, we are currently storing an EBRAINS token inside a Github Secret. The problem is that the token expires after 7 days, so it need to be manually updated each week.

      An idea to overcome this is to write a script (which will run inside a Github Actions workflow before running the tests), which will make a call to the authorization endpoint nexus-iam.humanbrainproject.org/v0/oauth2/authorize  and will receive a valid EBRAINS token. For this call a username and a password should be provided. The password and optionally the username could be stored as Github Secrets.

      The EBRAINS token obtained using said script will be stored as an env variable and used in the Siibra tests.

      Gliffy Diagrams

        Attachments

          Activity

            People

              lia.domide Lia Domide
              romina.baila Romina Baila
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours, 30 minutes Time Not Required
                  1d 2h 30m