Open
Conversation
🔴 Risk threshold exceeded.This pull request contains multiple security vulnerabilities in the GitHub Actions workflow, including command injection risks, potential information disclosure of AWS secrets, hardcoded credentials, and insecure GitHub Action configurations that could lead to unauthorized access or remote code execution. 🔴 Code Policy: GitHub Action Policy Rails
🟡 Code Policy: hardcoded-creds
Command Injection in CI/CD Pipeline in
|
| Vulnerability | Command Injection in CI/CD Pipeline |
|---|---|
| Description | The GitHub Actions workflow in .github/workflows/main.yaml is vulnerable to command injection. The deploy-dev job, which can be triggered manually via workflow_dispatch, directly uses the user-provided github.event.inputs.tag input within a git checkout shell command without any sanitization or validation. This allows an attacker to inject arbitrary shell commands by crafting a malicious tag value, leading to remote code execution on the GitHub Actions runner. |
rails-projects/.github/workflows/main.yaml
Lines 1 to 158 in afb94b9
Information Disclosure of AWS Secret in Logs in .github/workflows/main.yaml
| Vulnerability | Information Disclosure of AWS Secret in Logs |
|---|---|
| Description | The GitHub Actions workflow file '.github/workflows/main.yaml' explicitly prints the AWS_SECRET_ACCESS_KEY to the workflow logs in the 'deploy-dev' job. This exposes a critical AWS credential to anyone with access to the GitHub Actions logs for this repository, which could lead to unauthorized access to AWS resources. |
rails-projects/.github/workflows/main.yaml
Lines 1 to 158 in afb94b9
All finding details can be found in the DryRun Security Dashboard.
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.
No description provided.