-
Notifications
You must be signed in to change notification settings - Fork 298
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
feat(lib): mitre d3fend #1394
feat(lib): mitre d3fend #1394
Changes from 5 commits
5d46e2d
0d79c22
a45ee5a
f5b887a
77f48bd
f711740
a207e6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -102,7 +102,7 @@ jobs: | |||||
- name: Set current date as env variable | ||||||
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV | ||||||
- name: Sanitize branch name | ||||||
run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/" "_")" >> $GITHUB_ENV | ||||||
run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/()" "_")" >> $GITHUB_ENV | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use single quotes to prevent globbing and word splitting. The command should use single quotes for the tr pattern to ensure reliable string handling. Apply this fix: - run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/()" "_")" >> $GITHUB_ENV
+ run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr '/()\'' '_')" >> $GITHUB_ENV 📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.4)105-105: shellcheck reported issue in this script: SC2086:info:1:74: Double quote to prevent globbing and word splitting (shellcheck) |
||||||
- uses: actions/upload-artifact@v4 | ||||||
if: always() | ||||||
with: | ||||||
|
@@ -242,7 +242,7 @@ jobs: | |||||
- name: Set current date as env variable | ||||||
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV | ||||||
- name: Sanitize branch name | ||||||
run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/" "_")" >> $GITHUB_ENV | ||||||
run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/()" "_")" >> $GITHUB_ENV | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use single quotes to prevent globbing and word splitting. The command should use single quotes for the tr pattern to ensure reliable string handling. Apply this fix: - run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr "/()" "_")" >> $GITHUB_ENV
+ run: echo "BRANCH_SANITIZED=$(echo ${{ env.BRANCH_NAME }} | tr '/()\'' '_')" >> $GITHUB_ENV
🧰 Tools🪛 actionlint (1.7.4)245-245: shellcheck reported issue in this script: SC2086:info:1:74: Double quote to prevent globbing and word splitting (shellcheck) |
||||||
- uses: actions/upload-artifact@v4 | ||||||
if: always() | ||||||
with: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix shell script syntax error in branch name sanitization.
The current command has a syntax error with single quotes that could cause the workflow to fail.
Apply this fix:
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
120-120: shellcheck reported issue in this script: SC1009:info:1:56: The mentioned syntax error was in this simple command
(shellcheck)
120-120: shellcheck reported issue in this script: SC1073:error:1:68: Couldn't parse this single quoted string. Fix to allow more checks
(shellcheck)
120-120: shellcheck reported issue in this script: SC1072:error:2:1: Expected end of single quoted string. Fix any mentioned problems and try again
(shellcheck)