1
0
Fork 0
mirror of synced 2026-06-05 18:38:19 +00:00

Security considerations: ids are strings, not integers (#400)

Fix doc regarding using assertion on IDs rather than names. They refer
to IDs as integers, where those are actually strings, so we need to
quote them.

I lost too many hours on this to let anyone else experience the same
issue :D

Signed-off-by: Joachim Jablon <ewjoachim@gmail.com>
This commit is contained in:
Joachim Jablon 2024-03-12 16:21:38 +01:00 committed by GitHub
commit 33e827c6cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ curl -sfL -H "Accept: application/json" "https://api.github.com/repos/${REPO}" |
These can be used in an Attribute Condition: These can be used in an Attribute Condition:
```cel ```cel
assertion.repository_owner_id == 1342004 && assertion.repository_id == 260064828 assertion.repository_owner_id == '1342004' && assertion.repository_id == '260064828'
``` ```
[cybersquatting]: https://en.wikipedia.org/wiki/Cybersquatting [cybersquatting]: https://en.wikipedia.org/wiki/Cybersquatting