mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
cleanup
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"filename": ".github/workflows/daily_checks.yml",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 71,
|
||||
"line_number": 63,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -169,7 +169,7 @@
|
||||
"filename": ".github/workflows/daily_checks.yml",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 87,
|
||||
"line_number": 79,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -384,5 +384,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"generated_at": "2025-06-02T13:22:36Z"
|
||||
"generated_at": "2025-06-04T15:02:41Z"
|
||||
}
|
||||
|
||||
10
.github/workflows/checks.yml
vendored
10
.github/workflows/checks.yml
vendored
@@ -87,15 +87,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/setup-project
|
||||
- name: Create requirements.txt
|
||||
run: poetry export --output requirements_tmp.txt --without-hashes
|
||||
- name: Filter requirements.txt
|
||||
run: grep -v "oscrypto@ git" requirements_tmp.txt > requirements.txt
|
||||
- name: Verify requirements.txt
|
||||
run: ls -l requirements.txt
|
||||
- name: Print requirements.txt
|
||||
run: |
|
||||
echo "Contents of requirements.txt:"
|
||||
cat requirements.txt
|
||||
run: poetry export --output requirements.txt
|
||||
- uses: pypa/gh-action-pip-audit@v1.1.0
|
||||
with:
|
||||
inputs: requirements.txt
|
||||
|
||||
10
.github/workflows/daily_checks.yml
vendored
10
.github/workflows/daily_checks.yml
vendored
@@ -26,15 +26,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/setup-project
|
||||
- name: Create requirements.txt
|
||||
run: poetry export --output requirements_tmp.txt --without-hashes
|
||||
- name: Filter requirements.txt
|
||||
run: grep -v "oscrypto@ git" requirements_tmp.txt > requirements.txt
|
||||
- name: Verify requirements.txt
|
||||
run: ls -l requirements.txt
|
||||
- name: Print requirements.txt
|
||||
run: |
|
||||
echo "Contents of requirements.txt:"
|
||||
cat requirements.txt
|
||||
run: poetry export --output requirements.txt
|
||||
- uses: pypa/gh-action-pip-audit@v1.1.0
|
||||
with:
|
||||
inputs: requirements.txt
|
||||
|
||||
@@ -4,9 +4,6 @@ from urllib.parse import urlparse
|
||||
|
||||
import requests
|
||||
import six
|
||||
|
||||
# import oscrypto.asymmetric
|
||||
# import oscrypto.errors
|
||||
from cryptography import x509
|
||||
from cryptography.exceptions import InvalidSignature
|
||||
from cryptography.hazmat.primitives import hashes
|
||||
@@ -125,13 +122,6 @@ def validate_sns_cert(sns_payload):
|
||||
public_key.verify(
|
||||
signature, string_to_sign, padding.PKCS1v15(), hashes.SHA256() # or SHA1?
|
||||
)
|
||||
# oscrypto.asymmetric.rsa_pkcs1v15_verify(
|
||||
# oscrypto.asymmetric.load_certificate(certificate),
|
||||
# signature,
|
||||
# string_to_sign,
|
||||
# "sha1",
|
||||
# )
|
||||
return True
|
||||
# except oscrypto.errors.SignatureError:
|
||||
except InvalidSignature:
|
||||
raise ValidationError("Invalid signature")
|
||||
|
||||
Reference in New Issue
Block a user