title: My GitHub Action's GitHub API calls start failing after a period of time
body: <p>Yesterday I successfully ran this GitHub action several times, but now it is failing with an HTTP Not Found error.  If I make the same REST call to the URL in Postman  <a href="https://api.github.com/repos/RobotOpsPlayground/scottTest5/issues/4" rel="nofollow noreferrer">https://api.github.com/repos/RobotOpsPlayground/scottTest5/issues/4</a> I get back the expected JSON results. I do not understand what has changed, does anyone have an idea?</p>
  <p>So far, I have recreated and am using a new GitHub personal token, which has the same permissions as the one that was working.  I have copied the code into a new repo and encountered the same problem.</p>
  <p>This is the output from the action's execution:</p>
  <pre class="lang-none prettyprint-override"><code>Run ./.github/actions/route_issue/
    with:
      myToken: ***
      myOwner: RobotOpsPlayground
      myRepo: RobotOpsPlayground/scottTest5
      myKnownLabels: repo-request, team-request, member-request, triage
      myDefaultLabel: triage
      myIssueNumber: 0
  issueNumber 4
  owner RobotOpsPlayground
  repo RobotOpsPlayground/scottTest5
  token ***
  getting /repos/RobotOpsPlayground/scottTest5/issues/4 details from github 
  &quot;GET /repos/RobotOpsPlayground/scottTest5/issues/4
  sync function called for /repos/:repo/issues/:issueNumber
  failing due to HttpError: Not Found -- Not Found
  Error: Not Found
  </code></pre>
  <p>And here is the action.yaml</p>
  <pre class="lang-yaml prettyprint-override"><code>name: 'route_issue'
  description: 'pull some info from an issue'
  inputs:
    myToken:  
      description: 'github token'
      required: true
    myOwner:  
      description: 'github owner|organization'
      required: true
      default: 'RobotOpsPlayground'
    myRepo: 
      description: 'github repo'
      required: true
  </code></pre>
  <p>And a part of the action's index.js</p>
  <pre class="lang-js prettyprint-override"><code>async function run() {
  
    const myToken = core.getInput('myToken');
    const myOwner = core.getInput('myOwner');
    const myRepo = core.getInput('myRepo');
    const myIssueNumber = github.context.issue.number;
      
    // get issue details by looking up its issue number
    console.log(`getting /repos/${myRepo}/issues/${myIssueNumber} details from github `);
    let req = {
        method: 'GET',
        url: '/repos/:repo/issues/:issueNumber',
        headers: { authorization: `token ${myToken}` },
        repo: myRepo,
        issueNumber: myIssueNumber,
        log: &quot;debug&quot;
    };
  
  
    const result = await request req
    console.log(&quot;past getting issue&quot;)
    issue = result['data'];
    console.log(`my issue ${issue}`)
    if (issue.state !== 'open') {
      console.log(&quot;issue was not open&quot;)
    } else {
      console.log(&quot;processing issue&quot;);
    }
  }
  </code></pre>
  <p>And the GitHub workflow</p>
  <pre class="lang-yaml prettyprint-override"><code>name: route_issue
  
  on:
    issues:
      types: [opened]
  
  jobs:
    route_issue:
      runs-on: self-hosted
      outputs:
        issueNumber: ${{ steps.route_issue.outputs.issueNumber }}
        requestType: ${{ steps.route_issue.outputs.requestType }}  
      steps:
      - id: checkout
        uses: actions/checkout@v2
       
      - id: route_issue
        uses: ./.github/actions/route_issue/
        with:
          myToken: ${{ secrets.GH_TOKEN3 }}
          myOwner: ${{ github.repository_owner }}
          myRepo: ${{ github.repository }}
  </code></pre>