未验证 提交 063c51c7 编写于 作者: L Liu Xudong 提交者: GitHub

fix security hardening (#22796)

上级 df87e79f
......@@ -16,8 +16,7 @@ def get_pull(pull_id):
Returns:
github.PullRequest.PullRequest: The pull request.
"""
token = os.getenv('GITHUB_API_TOKEN',
'e1f9c3cf211d5c20e65bd9ab7ec07983da284bca')
token = os.getenv('GITHUB_API_TOKEN')
github = Github(token, timeout=60)
repo = github.get_repo('PaddlePaddle/Paddle')
pull = repo.get_pull(pull_id)
......
......@@ -17,8 +17,7 @@ def get_pull(pull_id):
Returns:
github.PullRequest.PullRequest
"""
token = os.getenv('GITHUB_API_TOKEN',
'e1f9c3cf211d5c20e65bd9ab7ec07983da284bca')
token = os.getenv('GITHUB_API_TOKEN')
github = Github(token, timeout=60)
repo = github.get_repo('PaddlePaddle/Paddle')
pull = repo.get_pull(pull_id)
......
......@@ -16,7 +16,7 @@ cd /paddle/build
python ${PADDLE_ROOT}/tools/coverage/gcda_clean.py ${GIT_PR_ID}
lcov --capture -d ./ -o coverage.info --gcov-tool /usr/bin/gcov-4.8 --rc lcov_branch_coverage=0
lcov --capture -d ./ -o coverage.info --rc lcov_branch_coverage=0
# full html report
......
......@@ -10,8 +10,7 @@ import os
from github import Github
token = os.getenv('GITHUB_API_TOKEN',
'e1f9c3cf211d5c20e65bd9ab7ec07983da284bca')
token = os.getenv('GITHUB_API_TOKEN')
def get_pull(pull_id):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册