Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Encoding #181

Merged
merged 4 commits into from
Dec 28, 2023
Merged

Fix Encoding #181

merged 4 commits into from
Dec 28, 2023

Conversation

cyberbuff
Copy link
Collaborator

@cyberbuff cyberbuff commented Dec 28, 2023

Looks like PSScriptAnalyzer changed the encoding of all files from UTF8 to UTF8 with BOM(Byte Order Mark). The encoding shouldn't affect importing modules through Powershell commandline. But whenever a function is downloaded through IWR, it parses only UTF8 characters. Hence reverting everything back to UTF8

From the Docs:
When you used Fix, Invoke-ScriptAnalyzer applies the fixes before running the analysis. Make sure that you have a backup of your files when using this parameter. It tries to preserve the file encoding but there are still some cases where the encoding can change.

@cyberbuff
Copy link
Collaborator Author

cyberbuff commented Dec 28, 2023

The checks failed because T1221 has dependency_executor_name defined even though it doesn't have any dependencies.
Fixed the atomic here #2648. PR #2648 needs to be merged before this PR.

@cyberbuff cyberbuff changed the title Run simple test to check whether Invoke-AtomicTest is working Update CI/CD checks Dec 28, 2023
Revert "fixing NoExecutionLog"

This reverts commit 84a357a.

fixing NoExecutionLog
@cyberbuff cyberbuff changed the title Update CI/CD checks Fix Encoding Dec 28, 2023
@@ -20,3 +20,4 @@ jobs:
}
IEX (IWR 'https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}/install-atomicsfolder.ps1' -UseBasicParsing);
Install-AtomicsFolder -Force
Invoke-AtomicTest All -ShowDetailsBrief
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Running Invoke-AtomicTest to check whether the commands actually work after installing AtomicRedTeam

Copy link
Collaborator

@clr2of8 clr2of8 left a comment

Choose a reason for hiding this comment

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

Thank you, you are awesome!

@clr2of8 clr2of8 merged commit bc546d3 into redcanaryco:master Dec 28, 2023
4 checks passed
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.

2 participants