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

[DOC-9457] Prevent special characters in filenames processed by changed_files.yml #18191

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mikeCRL
Copy link
Contributor

@mikeCRL mikeCRL commented Jan 4, 2024

Follow up to #18181 to resolve the same matter but for our custom copy of that GH action.

@mikeCRL mikeCRL marked this pull request as ready for review January 4, 2024 20:20
@mikeCRL mikeCRL requested a review from a team as a code owner January 4, 2024 20:20
Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit 57632fe
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-api-docs/deploys/659718d9bd09e7000800a13a

Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit 57632fe
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-interactivetutorials-docs/deploys/659718d9b999ec0008564160

Copy link

netlify bot commented Jan 4, 2024

Netlify Preview

Name Link
🔨 Latest commit 57632fe
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-docs/deploys/659718d93ea4f100080339bb
😎 Deploy Preview https://deploy-preview-18191--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mikeCRL mikeCRL changed the title Prevent special characters in filenames processed by changed_files.yml [DOC-9457] Prevent special characters in filenames processed by changed_files.yml Jan 4, 2024
@mikeCRL mikeCRL marked this pull request as draft January 4, 2024 20:41
@mikeCRL mikeCRL removed the request for review from shannonbradshaw January 4, 2024 20:46
Copy link
Contributor

@shannonbradshaw shannonbradshaw left a comment

Choose a reason for hiding this comment

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

Left a couple of questions. How are you testing this, btw?

safe_file=$(printf '%q' "$file")
escaped_files+=("$safe_file")
done
printf "%s\n" "${escaped_files[@]}" > $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

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

Does $GITHUB_ENV carry any state or are you creating it here?

@@ -74,7 +81,8 @@ jobs:
output+="</ul>"
}

for file in ${files[@]}; do
env_files=($(cat $GITHUB_ENV))
for file in "${env_files[@]}"; do
Copy link
Contributor

Choose a reason for hiding this comment

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

Is env_files actually going to be a list?

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