Repository navigation
Update atmos describe affected command. Add --repo-path flag to atmos describe affected command - #313
Merged
Merged
Conversation
Andriy Knysh (aknysh)
requested review from
Andy Roth (RothAndrew) and
FlorianS (florian0410)
February 1, 2023 04:44
Andriy Knysh (aknysh)
temporarily deployed
to
preview
February 1, 2023 04:45 — with
GitHub Actions
Inactive
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Andriy Knysh (aknysh)
temporarily deployed
to
preview
February 1, 2023 15:37 — with
GitHub Actions
Inactive
… update-describe-affected-2
Andriy Knysh (aknysh)
temporarily deployed
to
preview
February 1, 2023 16:02 — with
GitHub Actions
Inactive
Andriy Knysh (aknysh)
temporarily deployed
to
preview
February 1, 2023 16:11 — with
GitHub Actions
Inactive
Andriy Knysh (aknysh)
requested review from
Matt Calhoun (mcalhoun) and
Erik Osterman (Cloud Posse) (osterman)
February 1, 2023 16:11
Erik Osterman (Cloud Posse) (osterman)
approved these changes
Feb 1, 2023
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
atmos describe affectedcommand--repo-pathflag toatmos describe affectedcommandwhy
--repo-pathflag specifies the filesystem path to the already cloned target repository with which to compare the current branch, and it can be used when working with private repositoriesWorking with Private Repositories
There are a few ways to work with private repositories with which the current local branch is compared to detect the changed files and affected Atmos stacks and components:
Using the
--ssh-keyflag to specify the filesystem path to a PEM-encoded private key to clone private repos using SSH, together with the--ssh-key-passwordflag to provide the encryption password for the PEM-encoded private key if the key contains a password-encrypted PEM blockIf the
atmos describe affectedcommand is executed in a GitHub Action, and you don't want to store or generate a long-lived SSH private key on the server, you can do the following:Create a GitHub Personal Access Token (PAT) with scope permissions to clone private repos
Add the created PAT as a repository or GitHub organization secret with the name
GITHUB_TOKENIn your GitHub action, clone the remote repository using the checkout GitHub action
Execute
atmos describe affectedcommand with the--repo-pathflag set to the cloned repository path usingthe
GITHUB_WORKSPACEENV variable (which points to the default working directory on the GitHub runner for steps, and the default location of the repository when using the checkout action). For example:atmos describe affected --repo-path $GITHUB_WORKSPACE