)]}'
{
  "commit": "3c9c1f6d00e8761389cd2c50bc4179459d6320b5",
  "tree": "34f8fb1a44d7d6c3340dfc3abbc6b09459e3f01d",
  "parents": [
    "5a05c654f92c675eb6bfe782f61b601b0efb77ea"
  ],
  "author": {
    "name": "Jin Qin",
    "email": "qinjin@google.com",
    "time": "Mon Mar 11 22:50:33 2024 +0000"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Tue Mar 12 20:05:50 2024 +0000"
  },
  "message": "oauth2/google: fix the logic of sts 0 value of expires_in\n\nThe sts response contains an optional field of `expires_in` and the value can be any integer.\n\nhttps://github.com/golang/oauth2/blob/master/google/internal/externalaccount/basecredentials.go#L246-L248\n\nIn the case of less than `0`, we are going to throw an error. But in the case of equals to `0` practically it means \"never expire\" instead of \"instantly expire\" which doesn\u0027t make sense.\n\nSo we need to not set the expiration value for Token object. The current else if greater or equal is wrong.\n\nIt\u0027s never triggered only because we are sending positive `3600` in sts response.\n\nChange-Id: Id227ca71130855235572b65ab178681e80d0da3a\nGitHub-Last-Rev: a95c923d6a5d256fa92629a1fcb908495d7b1338\nGitHub-Pull-Request: golang/oauth2#687\nReviewed-on: https://go-review.googlesource.com/c/oauth2/+/545895\nReviewed-by: Shin Fan \u003cshinfan@google.com\u003e\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nAuto-Submit: Cody Oss \u003ccodyoss@google.com\u003e\nReviewed-by: Cody Oss \u003ccodyoss@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "400aa0a072a32a602edb41e60a51f399342ddafd",
      "old_mode": 33188,
      "old_path": "google/externalaccount/basecredentials.go",
      "new_id": "6c81a68728e1cbf1359870e07d47623bd31051f0",
      "new_mode": 33188,
      "new_path": "google/externalaccount/basecredentials.go"
    },
    {
      "type": "modify",
      "old_id": "33314c3f096237164a1234596b076febaf775e2a",
      "old_mode": 33188,
      "old_path": "google/externalaccount/basecredentials_test.go",
      "new_id": "8f165cdb0ed68b7fd07764eba7d549b80e29aa60",
      "new_mode": 33188,
      "new_path": "google/externalaccount/basecredentials_test.go"
    }
  ]
}
