GITHUB_SHA not always correct

Sometimes the GITHUB_SHA doesn’t seem to match the commits for the PR branch. This doesn’t happen all the time - but when it does happen it seems to be persistent for that PR no matter how many commits you push to the branch being merged.

example : https://github.com/microsoft/azuredatastudio/pull/10879/checks?check_run_id=766753586

Locally I run these commands to switch to the PR branch :

git fetch origin +refs/pull/10879/merge:refs/remotes/pull/10879/merge
git checkout refs/remotes/pull/10879/merge

And then git log :

d3cf158c11fa584702248cd2e54f84a44166f7e9 (HEAD, pull/10879/merge) Merge e17cf53bd3b48e03fc4d86edb93107f5c9e4bb94 into 233646330e08351de40267c2c26faf644ac05155

In the failed check you can see that Coveralls upload task failed with this error :

##[error]Error: Command failed: git cat-file -p dae9cdfaf4d02ebd1900c62f150297dd3b0553e2

The hash it uses is the GITHUB_SHA environment variable set for the action. But that doesn’t match the hash of the merge commit.

This works fine in other cases though. Example : https://github.com/microsoft/azuredatastudio/pull/10855/checks?check_run_id=766338968

I did the same thing there - locally ran these commands :

git fetch origin +refs/pull/10855/merge:refs/remotes/pull/10855/merge
git checkout refs/remotes/pull/10855/merge
git log --pretty=oneline

and got this as the merge commit

e4b1ab3b1f9a231ad98eefe0b0e39401e7521499 (HEAD, pull/10855/merge) Merge f2628d1d2340fb69880279bebfe91f1c50457bb1 into a7110d89160e25cf914030dd467f3d85c0292692

which matches the GITHUB_SHA indicated in the action

GITHUB_SHA=e4b1ab3b1f9a231ad98eefe0b0e39401e7521499

Hi @Charles-Gagnon,

Could you please add below script to confirm the github sha value? I forked the repo but failed to repro on my side.

      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"

Thanks.

sha from the context :

"sha": "49b472bccdca381a7d8b92761fbf037a4af78800",

from the checkout step :

HEAD is now at d631d0b28 Merge 95caa894062bb5ec9cb7a88e1f1a8793d665e7b8 into d9e70731f49bfdac9f6b5ae11a8c2cfd4c95a893

I get the same thing if I run this command locally

git checkout --progress --force refs/remotes/pull/10879/merge

GITHUB_CONTEXT: {
  "token": "***",
  "job": "linux",
  "ref": "refs/pull/10879/merge",
  "sha": "49b472bccdca381a7d8b92761fbf037a4af78800",
  "repository": "microsoft/azuredatastudio",
  "repository_owner": "microsoft",
  "repositoryUrl": "git://github.com/microsoft/azuredatastudio.git",
  "run_id": "136329483",
  "run_number": "4387",
  "actor": "Charles-Gagnon",
  "workflow": "CI",
  "head_ref": "feat/nbCover",
  "base_ref": "main",
  "event_name": "pull_request",
  "event": {
    "action": "synchronize",
    "after": "95caa894062bb5ec9cb7a88e1f1a8793d665e7b8",
    "before": "c3d12644dea877e05dc01a66067352a24aea0602",
    "enterprise": {
      "avatar_url": "https://avatars0.githubusercontent.com/b/1578?v=4",
      "created_at": "2019-12-09T02:41:53Z",
      "description": "Microsoft's organizations for open source collaboration",
      "html_url": "https://github.com/enterprises/microsoftopensource",
      "id": 1578,
      "name": "Microsoft Open Source",
      "node_id": "MDEwOkVudGVycHJpc2UxNTc4",
      "slug": "microsoftopensource",
      "updated_at": "2020-05-19T18:21:45Z",
      "website_url": "https://opensource.microsoft.com"
    },
    "number": 10879,
    "organization": {
      "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4",
      "description": "Open source, from Microsoft with love",
      "events_url": "https://api.github.com/orgs/microsoft/events",
      "hooks_url": "https://api.github.com/orgs/microsoft/hooks",
      "id": 6154722,
      "issues_url": "https://api.github.com/orgs/microsoft/issues",
      "login": "microsoft",
      "members_url": "https://api.github.com/orgs/microsoft/members{/member}",
      "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
      "public_members_url": "https://api.github.com/orgs/microsoft/public_members{/member}",
      "repos_url": "https://api.github.com/orgs/microsoft/repos",
      "url": "https://api.github.com/orgs/microsoft"
    },
    "pull_request": {
      "_links": {
        "comments": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/issues/10879/comments"
        },
        "commits": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/pulls/10879/commits"
        },
        "html": {
          "href": "https://github.com/microsoft/azuredatastudio/pull/10879"
        },
        "issue": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/issues/10879"
        },
        "review_comment": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/pulls/comments{/number}"
        },
        "review_comments": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/pulls/10879/comments"
        },
        "self": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/pulls/10879"
        },
        "statuses": {
          "href": "https://api.github.com/repos/microsoft/azuredatastudio/statuses/95caa894062bb5ec9cb7a88e1f1a8793d665e7b8"
        }
      },
      "active_lock_reason": null,
      "additions": 245,
      "assignee": {
        "avatar_url": "https://avatars2.githubusercontent.com/u/41588310?v=4",
        "events_url": "https://api.github.com/users/ranasaria/events{/privacy}",
        "followers_url": "https://api.github.com/users/ranasaria/followers",
        "following_url": "https://api.github.com/users/ranasaria/following{/other_user}",
        "gists_url": "https://api.github.com/users/ranasaria/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/ranasaria",
        "id": 41588310,
        "login": "ranasaria",
        "node_id": "MDQ6VXNlcjQxNTg4MzEw",
        "organizations_url": "https://api.github.com/users/ranasaria/orgs",
        "received_events_url": "https://api.github.com/users/ranasaria/received_events",
        "repos_url": "https://api.github.com/users/ranasaria/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/ranasaria/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/ranasaria/subscriptions",
        "type": "User",
        "url": "https://api.github.com/users/ranasaria"
      },
      "assignees": [
        {
          "avatar_url": "https://avatars2.githubusercontent.com/u/41588310?v=4",
          "events_url": "https://api.github.com/users/ranasaria/events{/privacy}",
          "followers_url": "https://api.github.com/users/ranasaria/followers",
          "following_url": "https://api.github.com/users/ranasaria/following{/other_user}",
          "gists_url": "https://api.github.com/users/ranasaria/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/ranasaria",
          "id": 41588310,
          "login": "ranasaria",
          "node_id": "MDQ6VXNlcjQxNTg4MzEw",
          "organizations_url": "https://api.github.com/users/ranasaria/orgs",
          "received_events_url": "https://api.github.com/users/ranasaria/received_events",
          "repos_url": "https://api.github.com/users/ranasaria/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/ranasaria/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/ranasaria/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/ranasaria"
        }
      ],
      "author_association": "CONTRIBUTOR",
      "base": {
        "label": "microsoft:main",
        "ref": "main",
        "repo": {
          "archive_url": "https://api.github.com/repos/microsoft/azuredatastudio/{archive_format}{/ref}",
          "archived": false,
          "assignees_url": "https://api.github.com/repos/microsoft/azuredatastudio/assignees{/user}",
          "blobs_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/blobs{/sha}",
          "branches_url": "https://api.github.com/repos/microsoft/azuredatastudio/branches{/branch}",
          "clone_url": "https://github.com/microsoft/azuredatastudio.git",
          "collaborators_url": "https://api.github.com/repos/microsoft/azuredatastudio/collaborators{/collaborator}",
          "comments_url": "https://api.github.com/repos/microsoft/azuredatastudio/comments{/number}",
          "commits_url": "https://api.github.com/repos/microsoft/azuredatastudio/commits{/sha}",
          "compare_url": "https://api.github.com/repos/microsoft/azuredatastudio/compare/{base}...{head}",
          "contents_url": "https://api.github.com/repos/microsoft/azuredatastudio/contents/{+path}",
          "contributors_url": "https://api.github.com/repos/microsoft/azuredatastudio/contributors",
          "created_at": "2017-11-02T01:00:13Z",
          "default_branch": "main",
          "deployments_url": "https://api.github.com/repos/microsoft/azuredatastudio/deployments",
          "description": "Azure Data Studio is a data management tool that enables working with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.",
          "disabled": false,
          "downloads_url": "https://api.github.com/repos/microsoft/azuredatastudio/downloads",
          "events_url": "https://api.github.com/repos/microsoft/azuredatastudio/events",
          "fork": false,
          "forks": 522,
          "forks_count": 522,
          "forks_url": "https://api.github.com/repos/microsoft/azuredatastudio/forks",
          "full_name": "microsoft/azuredatastudio",
          "git_commits_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/commits{/sha}",
          "git_refs_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/refs{/sha}",
          "git_tags_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/tags{/sha}",
          "git_url": "git://github.com/microsoft/azuredatastudio.git",
          "has_downloads": true,
          "has_issues": true,
          "has_pages": false,
          "has_projects": true,
          "has_wiki": true,
          "homepage": "",
          "hooks_url": "https://api.github.com/repos/microsoft/azuredatastudio/hooks",
          "html_url": "https://github.com/microsoft/azuredatastudio",
          "id": 109200851,
          "issue_comment_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/comments{/number}",
          "issue_events_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/events{/number}",
          "issues_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues{/number}",
          "keys_url": "https://api.github.com/repos/microsoft/azuredatastudio/keys{/key_id}",
          "labels_url": "https://api.github.com/repos/microsoft/azuredatastudio/labels{/name}",
          "language": "TypeScript",
          "languages_url": "https://api.github.com/repos/microsoft/azuredatastudio/languages",
          "license": {
            "key": "other",
            "name": "Other",
            "node_id": "MDc6TGljZW5zZTA=",
            "spdx_id": "NOASSERTION",
            "url": null
          },
          "merges_url": "https://api.github.com/repos/microsoft/azuredatastudio/merges",
          "milestones_url": "https://api.github.com/repos/microsoft/azuredatastudio/milestones{/number}",
          "mirror_url": null,
          "name": "azuredatastudio",
          "node_id": "MDEwOlJlcG9zaXRvcnkxMDkyMDA4NTE=",
          "notifications_url": "https://api.github.com/repos/microsoft/azuredatastudio/notifications{?since,all,participating}",
          "open_issues": 1776,
          "open_issues_count": 1776,
          "owner": {
            "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4",
            "events_url": "https://api.github.com/users/microsoft/events{/privacy}",
            "followers_url": "https://api.github.com/users/microsoft/followers",
            "following_url": "https://api.github.com/users/microsoft/following{/other_user}",
            "gists_url": "https://api.github.com/users/microsoft/gists{/gist_id}",
            "gravatar_id": "",
            "html_url": "https://github.com/microsoft",
            "id": 6154722,
            "login": "microsoft",
            "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
            "organizations_url": "https://api.github.com/users/microsoft/orgs",
            "received_events_url": "https://api.github.com/users/microsoft/received_events",
            "repos_url": "https://api.github.com/users/microsoft/repos",
            "site_admin": false,
            "starred_url": "https://api.github.com/users/microsoft/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/microsoft/subscriptions",
            "type": "Organization",
            "url": "https://api.github.com/users/microsoft"
          },
          "private": false,
          "pulls_url": "https://api.github.com/repos/microsoft/azuredatastudio/pulls{/number}",
          "pushed_at": "2020-06-15T18:46:53Z",
          "releases_url": "https://api.github.com/repos/microsoft/azuredatastudio/releases{/id}",
          "size": 93036,
          "ssh_url": "git@github.com:microsoft/azuredatastudio.git",
          "stargazers_count": 5773,
          "stargazers_url": "https://api.github.com/repos/microsoft/azuredatastudio/stargazers",
          "statuses_url": "https://api.github.com/repos/microsoft/azuredatastudio/statuses/{sha}",
          "subscribers_url": "https://api.github.com/repos/microsoft/azuredatastudio/subscribers",
          "subscription_url": "https://api.github.com/repos/microsoft/azuredatastudio/subscription",
          "svn_url": "https://github.com/microsoft/azuredatastudio",
          "tags_url": "https://api.github.com/repos/microsoft/azuredatastudio/tags",
          "teams_url": "https://api.github.com/repos/microsoft/azuredatastudio/teams",
          "trees_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/trees{/sha}",
          "updated_at": "2020-06-15T18:25:36Z",
          "url": "https://api.github.com/repos/microsoft/azuredatastudio",
          "watchers": 5773,
          "watchers_count": 5773
        },
        "sha": "d9e70731f49bfdac9f6b5ae11a8c2cfd4c95a893",
        "user": {
          "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4",
          "events_url": "https://api.github.com/users/microsoft/events{/privacy}",
          "followers_url": "https://api.github.com/users/microsoft/followers",
          "following_url": "https://api.github.com/users/microsoft/following{/other_user}",
          "gists_url": "https://api.github.com/users/microsoft/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/microsoft",
          "id": 6154722,
          "login": "microsoft",
          "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
          "organizations_url": "https://api.github.com/users/microsoft/orgs",
          "received_events_url": "https://api.github.com/users/microsoft/received_events",
          "repos_url": "https://api.github.com/users/microsoft/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/microsoft/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/microsoft/subscriptions",
          "type": "Organization",
          "url": "https://api.github.com/users/microsoft"
        }
      },
      "body": "<!-- Thank you for submitting a Pull Request. Please:\r\n* Read our Pull Request guidelines:\r\n  https://github.com/Microsoft/azuredatastudio/wiki/How-to-Contribute#pull-requests.\r\n* Associate an issue with the Pull Request.\r\n* Ensure that the code is up-to-date with the `master` branch.\r\n* Include a description of the proposed changes and how to test them.\r\n-->\r\nThis PR checks in the initial few unit tests for NotebookEditor class. It also fixes a small stack overflow issue in promise.ts and does some spelling fixes and readability renames.\r\nThis PR fixes #10875 \r\n\r\nTested all unit tests on a dev box. The following is the coverage added to the NotebookEditor class(from basically 0) from these tests:\r\n![image](https://user-images.githubusercontent.com/41588310/84447547-225fca00-abfd-11ea-9e8c-9a42a4eca7e7.png)\r\n",
      "changed_files": 7,
      "closed_at": null,
      "comments": 1,
      "comments_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/10879/comments",
      "commits": 21,
      "commits_url": "https://api.github.com/repos/microsoft/azuredatastudio/pulls/10879/commits",
      "created_at": "2020-06-11T19:16:46Z",
      "deletions": 56,
      "diff_url": "https://github.com/microsoft/azuredatastudio/pull/10879.diff",
      "draft": false,
      "head": {
        "label": "microsoft:feat/nbCover",
        "ref": "feat/nbCover",
        "repo": {
          "archive_url": "https://api.github.com/repos/microsoft/azuredatastudio/{archive_format}{/ref}",
          "archived": false,
          "assignees_url": "https://api.github.com/repos/microsoft/azuredatastudio/assignees{/user}",
          "blobs_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/blobs{/sha}",
          "branches_url": "https://api.github.com/repos/microsoft/azuredatastudio/branches{/branch}",
          "clone_url": "https://github.com/microsoft/azuredatastudio.git",
          "collaborators_url": "https://api.github.com/repos/microsoft/azuredatastudio/collaborators{/collaborator}",
          "comments_url": "https://api.github.com/repos/microsoft/azuredatastudio/comments{/number}",
          "commits_url": "https://api.github.com/repos/microsoft/azuredatastudio/commits{/sha}",
          "compare_url": "https://api.github.com/repos/microsoft/azuredatastudio/compare/{base}...{head}",
          "contents_url": "https://api.github.com/repos/microsoft/azuredatastudio/contents/{+path}",
          "contributors_url": "https://api.github.com/repos/microsoft/azuredatastudio/contributors",
          "created_at": "2017-11-02T01:00:13Z",
          "default_branch": "main",
          "deployments_url": "https://api.github.com/repos/microsoft/azuredatastudio/deployments",
          "description": "Azure Data Studio is a data management tool that enables working with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.",
          "disabled": false,
          "downloads_url": "https://api.github.com/repos/microsoft/azuredatastudio/downloads",
          "events_url": "https://api.github.com/repos/microsoft/azuredatastudio/events",
          "fork": false,
          "forks": 522,
          "forks_count": 522,
          "forks_url": "https://api.github.com/repos/microsoft/azuredatastudio/forks",
          "full_name": "microsoft/azuredatastudio",
          "git_commits_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/commits{/sha}",
          "git_refs_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/refs{/sha}",
          "git_tags_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/tags{/sha}",
          "git_url": "git://github.com/microsoft/azuredatastudio.git",
          "has_downloads": true,
          "has_issues": true,
          "has_pages": false,
          "has_projects": true,
          "has_wiki": true,
          "homepage": "",
          "hooks_url": "https://api.github.com/repos/microsoft/azuredatastudio/hooks",
          "html_url": "https://github.com/microsoft/azuredatastudio",
          "id": 109200851,
          "issue_comment_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/comments{/number}",
          "issue_events_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/events{/number}",
          "issues_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues{/number}",
          "keys_url": "https://api.github.com/repos/microsoft/azuredatastudio/keys{/key_id}",
          "labels_url": "https://api.github.com/repos/microsoft/azuredatastudio/labels{/name}",
          "language": "TypeScript",
          "languages_url": "https://api.github.com/repos/microsoft/azuredatastudio/languages",
          "license": {
            "key": "other",
            "name": "Other",
            "node_id": "MDc6TGljZW5zZTA=",
            "spdx_id": "NOASSERTION",
            "url": null
          },
          "merges_url": "https://api.github.com/repos/microsoft/azuredatastudio/merges",
          "milestones_url": "https://api.github.com/repos/microsoft/azuredatastudio/milestones{/number}",
          "mirror_url": null,
          "name": "azuredatastudio",
          "node_id": "MDEwOlJlcG9zaXRvcnkxMDkyMDA4NTE=",
          "notifications_url": "https://api.github.com/repos/microsoft/azuredatastudio/notifications{?since,all,participating}",
          "open_issues": 1776,
          "open_issues_count": 1776,
          "owner": {
            "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4",
            "events_url": "https://api.github.com/users/microsoft/events{/privacy}",
            "followers_url": "https://api.github.com/users/microsoft/followers",
            "following_url": "https://api.github.com/users/microsoft/following{/other_user}",
            "gists_url": "https://api.github.com/users/microsoft/gists{/gist_id}",
            "gravatar_id": "",
            "html_url": "https://github.com/microsoft",
            "id": 6154722,
            "login": "microsoft",
            "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
            "organizations_url": "https://api.github.com/users/microsoft/orgs",
            "received_events_url": "https://api.github.com/users/microsoft/received_events",
            "repos_url": "https://api.github.com/users/microsoft/repos",
            "site_admin": false,
            "starred_url": "https://api.github.com/users/microsoft/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/microsoft/subscriptions",
            "type": "Organization",
            "url": "https://api.github.com/users/microsoft"
          },
          "private": false,
          "pulls_url": "https://api.github.com/repos/microsoft/azuredatastudio/pulls{/number}",
          "pushed_at": "2020-06-15T18:46:53Z",
          "releases_url": "https://api.github.com/repos/microsoft/azuredatastudio/releases{/id}",
          "size": 93036,
          "ssh_url": "git@github.com:microsoft/azuredatastudio.git",
          "stargazers_count": 5773,
          "stargazers_url": "https://api.github.com/repos/microsoft/azuredatastudio/stargazers",
          "statuses_url": "https://api.github.com/repos/microsoft/azuredatastudio/statuses/{sha}",
          "subscribers_url": "https://api.github.com/repos/microsoft/azuredatastudio/subscribers",
          "subscription_url": "https://api.github.com/repos/microsoft/azuredatastudio/subscription",
          "svn_url": "https://github.com/microsoft/azuredatastudio",
          "tags_url": "https://api.github.com/repos/microsoft/azuredatastudio/tags",
          "teams_url": "https://api.github.com/repos/microsoft/azuredatastudio/teams",
          "trees_url": "https://api.github.com/repos/microsoft/azuredatastudio/git/trees{/sha}",
          "updated_at": "2020-06-15T18:25:36Z",
          "url": "https://api.github.com/repos/microsoft/azuredatastudio",
          "watchers": 5773,
          "watchers_count": 5773
        },
        "sha": "95caa894062bb5ec9cb7a88e1f1a8793d665e7b8",
        "user": {
          "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4",
          "events_url": "https://api.github.com/users/microsoft/events{/privacy}",
          "followers_url": "https://api.github.com/users/microsoft/followers",
          "following_url": "https://api.github.com/users/microsoft/following{/other_user}",
          "gists_url": "https://api.github.com/users/microsoft/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/microsoft",
          "id": 6154722,
          "login": "microsoft",
          "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
          "organizations_url": "https://api.github.com/users/microsoft/orgs",
          "received_events_url": "https://api.github.com/users/microsoft/received_events",
          "repos_url": "https://api.github.com/users/microsoft/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/microsoft/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/microsoft/subscriptions",
          "type": "Organization",
          "url": "https://api.github.com/users/microsoft"
        }
      },
      "html_url": "https://github.com/microsoft/azuredatastudio/pull/10879",
      "id": 433280627,
      "issue_url": "https://api.github.com/repos/microsoft/azuredatastudio/issues/10879",
      "labels": [],
      "locked": false,
      "maintainer_can_modify": false,
      "merge_commit_sha": "a8f0dca87d70de08043bff7db4cadc1314e4bb74",
      "mergeable": null,
      "mergeable_state": "unknown",
      "merged": false,
      "merged_at": null,
      "merged_by": null,
      "milestone": null,
      "node_id": "MDExOlB1bGxSZXF1ZXN0NDMzMjgwNjI3",
      "number": 10879,
      "patch_url": "https://github.com/microsoft/azuredatastudio/pull/10879.patch",
      "rebaseable": null,
...

(let me know if you need more - size limits mean I can’t paste the whole context)

After some help with the investigation it ended up being that the checkout action being used wasn’t pulling the correct version down and so there was a mismatch between what was checked out and what the GITHUB_SHA was.

Updating to v2.2.0 of the checkout action should solve the issue.

1 Like