fix: Fix for Group Dependabot PRs Pipeline failure #1900
Merged
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.
Purpose
This pull request updates the way required tools are installed in the
.github/workflows/group_dependabot_security_updates.yml
workflow. Instead of using thecache-apt-pkgs-action
, the workflow now directly installs the necessary packages usingapt-get
.CI/CD workflow update:
awalsh128/cache-apt-pkgs-action
for installingjq
andgh
with direct installation viaapt-get
in the workflow job setup.**Root cause **
What I changed so it stops failing immediately
- File edited: group_dependabot_security_updates.yml
- Replaced: uses: awalsh128/[email protected] with: packages: "jq gh"
- With an inline step: run: | sudo apt-get update sudo apt-get install -y jq gh
Why this fix works
The runner failure was because the third-party action (cache-apt-pkgs-action) pulls in an action that uses actions/upload-artifact@v3. By removing that action from your workflow we avoid triggering the deprecated chain while still getting the tool installs we need.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information