Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-4419

Use API tokens in Loraine Lab Bitbucket pipelines

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Atlassian is going to retire all app passwords soon.

      We need to update all our pipeline-using repositories to use Atlassian API tokens instead of app passwords.

      For this, edit every pipelines file to use user-configured repositories EMAIL and TOKEN. In each repo, set these two values as follows:

      EMAIL: the one true email address used for some user who can run pipelines for a repository (e.g., aloraine@gmail.com)
      TOKEN: API token with the correct scope

      For an example, see the monster gaps app repo:
      https://bitbucket.org/lorainelab/reads-without-large-gaps

        Attachments

          Issue Links

            Activity

            Show
            aloraine Ann Loraine added a comment - Made new branch: https://bitbucket.org/aloraine/integrated-genome-browser/src/IGBF-4419
            Hide
            aloraine Ann Loraine added a comment -

            Submitted and merged PR.

            Notes:

            • Using EMAIL and TOKEN repository variables
            • Repository variable "TOKEN" must have bitbucket:repository:write and bitbucket:repository:read scopes
            • The write scope is required to copy artifacts to Downloads folder
            • The read scope is required to access env.sh which has key info for the building of installers (using Install4J)
            • Only file I edited was the bitbucket pipelines YML configuration file
            Show
            aloraine Ann Loraine added a comment - Submitted and merged PR. Notes: Using EMAIL and TOKEN repository variables Repository variable "TOKEN" must have bitbucket:repository:write and bitbucket:repository:read scopes The write scope is required to copy artifacts to Downloads folder The read scope is required to access env.sh which has key info for the building of installers (using Install4J) Only file I edited was the bitbucket pipelines YML configuration file
            Hide
            aloraine Ann Loraine added a comment -

            Needed to update curl commands in "env.sh" accessed from iipc.

            Show
            aloraine Ann Loraine added a comment - Needed to update curl commands in "env.sh" accessed from iipc.
            Hide
            aloraine Ann Loraine added a comment -

            To test:

            Follow instructions in bitbucket YML file to create repository variables EMAIL and TOKEN.

            Make a note of anything that needs to be improve wrt documentation and instructions.

            Show
            aloraine Ann Loraine added a comment - To test: Follow instructions in bitbucket YML file to create repository variables EMAIL and TOKEN. Make a note of anything that needs to be improve wrt documentation and instructions.
            Hide
            aloraine Ann Loraine added a comment -

            Going out on a limb here and moving to DONE because my testing gave the expected result.

            Show
            aloraine Ann Loraine added a comment - Going out on a limb here and moving to DONE because my testing gave the expected result.

              People

              • Assignee:
                aloraine Ann Loraine
                Reporter:
                aloraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: