Skip to content

Comments

Potential fix for code scanning alert no. 1: Use of a known vulnerable action#31

Open
sharonstout1981 wants to merge 1 commit intomasterfrom
alert-autofix-1
Open

Potential fix for code scanning alert no. 1: Use of a known vulnerable action#31
sharonstout1981 wants to merge 1 commit intomasterfrom
alert-autofix-1

Conversation

@sharonstout1981
Copy link
Member

Potential fix for https://github.com/Pearl1981/win/security/code-scanning/1

To fix the vulnerability, the version of the tj-actions/changed-files GitHub Action used in the workflow needs to be updated from v19 to v41. This ensures that any known vulnerabilities in the earlier versions are patched, improving the security of the workflow. The file .github/workflows/datree-validation.yml needs to be modified at line 27 to replace tj-actions/changed-files@v19 with tj-actions/changed-files@v41. No additional changes or dependencies are required.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…e action

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Pearl <42342605+sharonstout1981@users.noreply.github.com>
@sharonstout1981 sharonstout1981 marked this pull request as ready for review July 18, 2025 17:09
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v19
uses: tj-actions/changed-files@v41

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Datree Workflow' step
Uses Step: changed-files
uses 'tj-actions/changed-files' with ref 'v41', not a pinned commit hash
Copy link
Member Author

@sharonstout1981 sharonstout1981 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant