The community cookbooks are versioned.
The site directive at the top of your Berkshelf file will download community cookbooks from the URL "http://cookbooks.opscode.com/api/v1/cookbooks":
site :opscode
cookbook "xxxx", "1.0"
cookbook "yyyy", "2.0"
As Seth points out this is better than retrieving from github as it ensures you're getting the released version. Another benefit is that transitive dependencies will be automatically retrieved.
The community cookbooks are release managed using tags. If you really, really, really wanted to keep retrieving them direct from github, you could do the following:
cookbook "artifact", github: "opscode-cookbooks/mysql", tag: "v4.0.14"
It would be great if all cookbooks in github following opscode's example. Then when we use them as dependencies we'd know which commit represents the actual version stated in the metadata file....