Skip to content

Commit 735c90a

Browse files
shijiashuaiqwencoder
andcommitted
fix(ci): fix workflow failures
- Create missing SECURITY.md file required by CI consistency check - Fix YAML syntax error in pages.yml caused by heredoc being parsed as YAML - Replace heredoc with echo statements to avoid YAML parser confusion Fixes GitHub Actions workflow failures Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent d5928b8 commit 735c90a

2 files changed

Lines changed: 56 additions & 9 deletions

File tree

.github/workflows/pages.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,17 +252,17 @@ jobs:
252252
fi
253253
254254
# Create _redirects for Netlify compatibility
255-
cat > "$SITE_DIR/_redirects" << 'EOF'
256-
# Redirect rules
257-
/en/api/cpp /cpp-api/index.html 200
258-
/en/api/python /python-api/index.html 200
259-
/zh-CN/api/cpp /cpp-api/index.html 200
260-
/zh-CN/api/python /python-api/index.html 200
261-
EOF
262-
255+
{
256+
echo "# Redirect rules"
257+
echo "/en/api/cpp /cpp-api/index.html 200"
258+
echo "/en/api/python /python-api/index.html 200"
259+
echo "/zh-CN/api/cpp /cpp-api/index.html 200"
260+
echo "/zh-CN/api/python /python-api/index.html 200"
261+
} > "$SITE_DIR/_redirects"
262+
263263
# Create 404 page
264264
cp "$SITE_DIR/404.html" "$SITE_DIR/404.html" 2>/dev/null || echo '<!DOCTYPE html><html><head><title>404</title></head><body><h1>404 - Page Not Found</h1><a href="/hpc-ai-optimization-lab/">Go Home</a></body></html>' > "$SITE_DIR/404.html"
265-
265+
266266
echo ""
267267
echo "=== Final Site Contents ==="
268268
ls -la "$SITE_DIR/"

SECURITY.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 0.1.x | :white_check_mark: |
8+
9+
## Reporting a Vulnerability
10+
11+
We take the security of HPC-AI-Optimization-Lab seriously. If you believe you have found a security vulnerability, please report it to us as soon as possible.
12+
13+
### Reporting Process
14+
15+
1. **Do NOT** open a public GitHub issue for security vulnerabilities
16+
2. Email your findings to the project maintainers
17+
3. Include:
18+
- Description of the vulnerability
19+
- Steps to reproduce the issue
20+
- Potential impact assessment
21+
- Suggested fix (if any)
22+
23+
### Response Timeline
24+
25+
- **Initial Response**: Within 48 hours
26+
- **Status Update**: Within 7 days
27+
- **Fix Timeline**: Based on severity
28+
- Critical: Within 7 days
29+
- High: Within 30 days
30+
- Medium/Low: Within 90 days
31+
32+
### Security Best Practices
33+
34+
When using this project:
35+
36+
1. Always review code changes before merging
37+
2. Keep dependencies up to date
38+
3. Follow the principle of least privilege when configuring access
39+
4. Regularly audit CI/CD workflows and permissions
40+
41+
## Security Updates
42+
43+
Security updates will be released as patch versions and announced in the [CHANGELOG.md](CHANGELOG.md).
44+
45+
## Acknowledgments
46+
47+
We appreciate responsible disclosure of security issues and will acknowledge reporters (with permission) in our release notes.

0 commit comments

Comments
 (0)