Skip to content

Commit

Permalink
update file writing
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahannali committed Dec 19, 2024
1 parent 3894ef7 commit ddaa12e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions action.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def run_linters():
)

with open(save_file, "r") as file:
file.write(str(commit_hash))
file.write("\n")
file.write(repo_name)
file.write(json.load(file))
with open("response.txt", "w") as file:
file.write(commit_hash)
file.write("\n")
file.write(repo_name)
file.write(json.load(save_file))
# data = {
# "repo_name": repo_name,
# "commit_hash": commit_hash,
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ runs:
- name: Upload Response Artifact
uses: actions/upload-artifact@v3
with:
name: sarif_output
path: sarif_output.json
name: output
path: output.txt

0 comments on commit ddaa12e

Please sign in to comment.