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

WIP: another PR reporting results to snyk.io #1252

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ spec:
value: [".", "-c", "/workspace/shared-workspace/source/.yamllint"]
- name: sast-snyk-check
params:
- name: SNYK_SECRET
value: snyk-shared-secret
- name: ARGS
value: --report --project-name=konflux-ci/build-definitions
runAfter:
- fetch-repository
taskRef:
Expand Down
6 changes: 2 additions & 4 deletions .tekton/scripts/github-update-comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ def main():
owner = os.environ["REPO_OWNER"]
repo = os.environ["REPO_NAME"]
pull_request = os.environ["PULL_REQUEST_NUMBER"]
with open(sys.argv[1], 'r') as comment_file:
comment = comment_file.read()
with open(os.environ['GITHUBAPP_KEY_PATH'], 'rb') as key_file:
key = key_file.read()
comment = "hi"
key = "🔑"
app_id = os.environ['GITHUBAPP_APP_ID']
print(f"Getting user token for application_id: {app_id}")
github_app = GitHub(
Expand Down
Loading