Skip to content

Commit

Permalink
fix: remove request header
Browse files Browse the repository at this point in the history
  • Loading branch information
rkpattnaik780 committed Jan 19, 2024
1 parent d397ae5 commit ae273b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sec-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
with:
source_branch: ${{ env.SEC_SCAN_BRANCH }}
destination_branch: ${{ env.BRANCH_NAME}}
github_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: "automated pr"
pr_title: "[Security Scanner Action] Weekly update of security vulnerabilities reported by Quay"
pr_body: |
Expand Down
6 changes: 1 addition & 5 deletions ci/security-scan/quay_security_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,8 @@ def process_image(image, commit_id_path, RELEASE_VERSION_N, HASH_N):
sha_ = output.split(":")[1]

url = f"https://quay.io/api/v1/repository/opendatahub/workbench-images/manifest/sha256:{sha_}/security"
headers = {
"X-Requested-With": "XMLHttpRequest",
"Authorization": "Bearer 3PZX0UYX6FSENKQ14I1VTHUJ4KGBS8L5LHJ0W1RN7TPHFVQ4P0NR7VQNCZIFRC9B_1"
}

response = requests.get(url, headers=headers)
response = requests.get(url)
data = response.json()

vulnerabilities = []
Expand Down

0 comments on commit ae273b6

Please sign in to comment.