Knowing only a table ID or a base ID is not very useful without credentials. People cannot access a base or table with only the ID. Table IDs are also not guaranteed to be universally unique. It is possible for someone to request access to a base given only the base ID, and it might be annoying dealing with request from curious people.
On the other hand, why hardcore and publish IDs to a public repo?