Eduardo Valdes
Eduardo Valdes
``` console $ tree -a ; . ├── .git ... ├── .github │ └── workflows │ ├── sample_full_workflow.yml │ ├── sample_min_workflow.yml │ ├── test_linux_runner.yml │ └── test_windows_runner.yml ├── README.md ├──...
``` console $ find . -type f | xargs -I {} egrep -Hni 'viz_run.ps1' {} ; ./action.yml:73: ${{ github.action_path }}/viz_run.ps1 ` ```
``` console $ find . -type f | xargs -I {} egrep -Hni 'josiahsiegel' {} ; ./README.md:4: [] ( https://github.com/ JosiahSiegel/AzViz-action/actions/workflows/test_linux_runner.yml ) ./README.md:5: []( https://github.com/ CDCgov/prime-reportstream/.github/ workflows/azviz--test_linux_runner.yml ) ./README.md:5: []( https://github.com/ CDCgov/prime-reportstream/ .github/workflows/azviz--test_windows_runner.yml ) ./README.md:80: - uses: CDCgov/prime-reportstream/.github/ actions/azviz@663e24299a6336f1ff8dbddadfac1ba5d462f731 ```
This external repo is now inserted in the file structure at: **.github/actions/checksum-validate-action** in the **importing-gha** branch.
```console $GITHUB_STEP_SUMMARY $GITHUB_OUTPUT ``` ```console env.sha ``` ```console github.sha ``` ```console inputs.input inputs.key ``` ```console matrix.os ``` ```console steps.input_sha.outputs.sha steps.valid-command.outputs.valid steps.valid-string.outputs.valid steps.validate_checksum.outputs.valid ```
I will be listing each step that must be performed in order to complete the importing of an external GitHub Action repository. **Note**: Follow these steps as a guideline but...
**1.** Always checkout the **MAIN** branch: ``` console $ git checkout main ; Switched to branch 'main' Your branch is up to date with 'origin/main'. ```
**2.** Always update the **MAIN** branch: ``` console $ git pull ; remote: Enumerating objects: ?, done. remote: Counting objects: 100% (?/?), done. remote: Compressing objects: 100% (?/?), done. remote:...
**3.** Create local branch using pattern-naming convention: ``` console $ git checkout -b devsecops// ; Switched to a new branch 'devsecops//' ```