Unified Language User Guides
iCR User Guide 4.2
iCR User Guide 4.2
  • Table of contents
    • Introduction
    • Overview
    • Authorizing Access to Your Source Code
      • Authenticating GitHub Access with a Cloud-Based VCS Repository Service
        • Authenticating GitHub Access with a Private VCS Repository
      • Authenticating GitLab Access with a Cloud-Based VCS Repository
        • Authenticating GitLab Access with a Private VCS Repository
      • Authenticating Bitbucket Access with a Cloud-Based VCS Repository
    • Using the Navigator
      • Connecting to the Navigator
      • Setting your User Password
      • The Navigator top banner
      • The Analysis Engine status
      • Selecting Your Source Code
        • Using a cloud-based VCS
        • Selecting your branch
        • Using a private VCS
        • Using a local project
        • Limiting the files to be analyzed
      • Integrating with your bug tracking system
        • Integrating with Jira - Define Your Project
        • Integrating with Jira - Authorizing Access for iCR
        • Integrating with Jira - Connecting with iCR
    • Using the Analysis Engine
      • Initiating an analysis
      • Monitoring the analysis
      • Interrupting the analysis
    • Reviewing your results
    • When you are complete
    • Integrating iCR Into Your CI/CD Workflows
      • Jenkins Workflow
        • Installing the plugin
        • Configuring the plugin
          • Creating a Personal Access Token
          • Copying Your Repository's URL
        • Viewing the Results
      • GitHub Actions Workflow
        • Workflow Overview
        • Preparing and Registering the Docker Image
        • Adding a Workflow to a Repository
        • Preparing the GitHub Workflow
          • Environment Variables
          • User Supplied Secrets
          • Setting the User Defined Secrets Values
        • Executing the Workflow
      • GitLab Workflow
        • Workflow Overview
        • Preparing the Docker Image
        • Configuring the GitLab Script variables
          • Environment Variables
          • User Supplied Variables
          • Creating a Personal Access Token
          • Setting the User Defined Variable Values
        • Executing the Workflow
      • Multiple Workflows
    • Appendix – Language Specific Fixer Lists
    • Appendix – Example Summary Report
    • Appendix - Sample Bug Listing
    • Appendix - Getting a BitBucket App Password for JENKINS
Powered by GitBook
On this page
  1. Table of contents
  2. Integrating iCR Into Your CI/CD Workflows
  3. GitHub Actions Workflow

Adding a Workflow to a Repository

PreviousPreparing and Registering the Docker ImageNextPreparing the GitHub Workflow

Last updated 10 months ago

Now that the iCR CI/CD container is properly registered for this User, we can link it with any of the repositories for which we desire a CI/CD workflow to be triggered. Click on the package name to link it with a project. In our example, that is icr-github. That brings up this window:

which presents up a popup menu where you can select which repositories you wish this container to be linked with. Keeping with our earlier example, we will associate CI/CD workflow capability to the sample project baritone. Select it along with any other repositories that you wish to be linked to this package.

Then click on the Connect Repository button at the bottom of the popup menu to link all selected repositories to this package.

With our example project linked to the package, the next step is to configure each spcific repository to allow GitHub Actions on its behalf. To do that, click on the Package Settings menu item in the updated display of the registered repository as illustrated below.

To permit GitHub Actions to work with this repository, access must be authorized. From this Package Settings page, scroll to the section titled Manage Actions access where there is a button labeled Add repository.

Clicking on it will, like earlier, display all of the repositories available to the logged-in user. From that list click the repository for which you wish to grant access. In our example, that is the Baritone repository so we click on its radio button. That adds Baritone to the list of repositories allowed to use GitHub actions with this package.

With our example project registered with the iCR package and the package now authorized to access GitHub Actions on behalf of our example repository, we can move to the steps to invoke a GitHub Actions workflow.