security: Remove GitHub PAT from code samples (#584)

This commit is contained in:
Tom Kerkhove
2023-10-17 12:56:19 +02:00
committed by GitHub
parent 970cfd44ee
commit a18879bf86

View File

@@ -62,7 +62,7 @@ query ($owner : String!, $name : String!) {
```shell
curl https://api.github.com/graphql -X POST \
-H "Authorization: bearer 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" \
-H "Authorization: bearer <PAT>" \
-d "{\"query\": \"query { viewer { login }}\"}"
{
@@ -76,7 +76,7 @@ curl https://api.github.com/graphql -X POST \
```shell
curl 'https://api.github.com/graphql' -X POST \
-H 'Authorization: bearer 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' \
-H 'Authorization: bearer <PAT>' \
-d '{"query":"query ($owner: String!, $name: String!) {\n repository(owner: $owner, name: $name) {\n name\n forkCount\n description\n }\n}\n","variables":{"owner":"2456868764","name":"higress"}}'
{