title: GitHub Actions - empty env secrets
body: <p>I've started playing with GitHub actions, but I'm struggling with accessing repository secrets which I pass as env's.</p>
  
  <p>My workflow file:</p>
  
  <pre><code>name: Invite
  
  on: 
    pull_request:
      branches: [master]
      types: [closed]
  jobs:
    invite:
      runs-on: ubuntu-latest
      steps:
        - name: Hello world action
          uses: lekterable/inclusive-organization-action@master
          env:
            SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
            organization: string
            SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
  </code></pre>
  
  <p>action index file</p>
  
  <pre><code>const core = require('@actions/core')
  const github = require('@actions/github')
  
  const run = async () =&gt; {
    try {
      ...
      console.log('env', process.env)
      const token = process.env.SECRET_TOKEN
      const secret = process.env.SUPER_SECRET
      const organization = process.env.organization
      console.log('organization', organization)
      console.log('token?', !!token)
      console.log('secret?', !!secret)
      console.log('token length', token.length)
      ...
    } catch (error) {
      core.setFailed(error.message)
    }
  }
  
  run()
  
  </code></pre>
  
  <p>as you can see I'm passing 3 env's, the organization which has a value of 'string' exists as expected, but SECRET_TOKEN and SUPER_SECRET are empty.</p>
  
  <p><a href="https://i.stack.imgur.com/kxZRq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kxZRq.png" alt="enter image description here"></a></p>
  
  <p>And yes, I do have the secrets set in the repo which runs the action:</p>
  
  <p><a href="https://i.stack.imgur.com/PJGGv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PJGGv.png" alt="enter image description here"></a></p>
  
  <p>Is there something that I'm doing wrong?</p>