mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Check for advisoryLabel instead of feedlabel
This commit is contained in:
parent
8032d47b50
commit
d8ad56956d
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ func (ca *rolieLabelChecker) check(
|
||||||
switch {
|
switch {
|
||||||
// If we are checking WHITE and we have a test client
|
// If we are checking WHITE and we have a test client
|
||||||
// and we get a status forbidden then the access is not open.
|
// and we get a status forbidden then the access is not open.
|
||||||
case ca.feedLabel == csaf.TLPLabelWhite:
|
case advisoryLabel == csaf.TLPLabelWhite:
|
||||||
p.badWhitePermissions.use()
|
p.badWhitePermissions.use()
|
||||||
res, err := ca.openClient.Get(advisory)
|
res, err := ca.openClient.Get(advisory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -117,7 +117,7 @@ func (ca *rolieLabelChecker) check(
|
||||||
// the data again with the open client.
|
// the data again with the open client.
|
||||||
// If this does not result in status forbidden the
|
// If this does not result in status forbidden the
|
||||||
// server may be wrongly configured.
|
// server may be wrongly configured.
|
||||||
case ca.feedLabel >= csaf.TLPLabelAmber:
|
case advisoryLabel >= csaf.TLPLabelAmber:
|
||||||
p.badAmberRedPermissions.use()
|
p.badAmberRedPermissions.use()
|
||||||
res, err := ca.openClient.Get(advisory)
|
res, err := ca.openClient.Get(advisory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue