File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,15 @@ class Image:
96
96
)
97
97
elif image .image_name .startswith ("ghcr.io/" ):
98
98
repository = image .image_name [8 :]
99
- response = requests .get ("https://ghcr.io/token" , params = {"scope" : f"repository:{ repository } :pull" })
99
+ response = requests .get (
100
+ "https://ghcr.io/token" , params = {"scope" : f"repository:{ repository } :pull" }
101
+ )
100
102
response .raise_for_status ()
101
103
token = response .json ()["token" ]
102
- response = requests .get (f"https://ghcr.io/v2/{ repository } /tags/list" , headers = {"Authorization" : f"Bearer { token } " })
104
+ response = requests .get (
105
+ f"https://ghcr.io/v2/{ repository } /tags/list" ,
106
+ headers = {"Authorization" : f"Bearer { token } " },
107
+ )
103
108
response .raise_for_status ()
104
109
tags = [(Version (tag ), tag ) for tag in response .json ()["tags" ] if tag != "latest" ]
105
110
tags .sort (reverse = True )
You can’t perform that action at this time.
0 commit comments