title: Why The Action Cannot Access Secrets?
body: <p>I am trying to create a workflow to deploy Nuget packages to Github Package Repository using Github Actions.</p>
  
  <p>In this case,</p>
  
  <ul>
  <li>The repository is inside an organization</li>
  <li>I am the owner of that organization</li>
  <li>I have admin access to the repository</li>
  <li>The repository has secrets listed</li>
  <li>The commit is mine</li>
  <li>The commit is a direct commit to a branch</li>
  </ul>
  
  <p>But the action CANNOT access the secrets</p>
  
  <p><a href="https://i.stack.imgur.com/PqZEr.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/PqZEr.jpg" alt="echo"></a></p>
  
  <p>Below is the workflow I am trying to execute</p>
  
  <pre><code>name: Build and Publish
  on:
  push:
    branches:
      - gh-packages
  jobs:
  build_and_publish:
  env:
    ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  name: Publish Packages to NuGet
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-dotnet@v1
      with:
        dotnet-version: "3.0.100"
    - name: Dump Github Context
      env:
        CONTEXT: ${{ toJson(github) }}
        SECRETS: ${{ toJson(secrets) }}
        TOK: ${{ secrets.ACCESS_TOKEN }}
        TEST: ${{ secrets.TEST }
      run: |
        echo $ACCESS_TOKEN
        echo $TOK
        echo $TEST
        echo $GITHUB_TOKEN
        echo "$SECRETS"
        echo "$CONTEXT"
    - name: Setup Config
      run: sed "s/ACCESS_TOKEN/$ACCESS_TOKEN/g" .nuget.config &gt; nuget.config
    - run: cat nuget.config
    - name: Build
      run: dotnet build -c Release
    - name: Publish
      run: chmod +x ./push.sh &amp;&amp; ./push.sh
  </code></pre>
  
  <p>Both GITHUB_TOKEN and custom secrets like ACCESS_TOKEN are not working.</p>
  
  <p><strong>addition 01:</strong></p>
  
  <p>Even when setting the environment variable name as GITHUB_TOKEN doesn't seam to be working</p>
  
  <pre><code>name: Build and Publish
  env:
     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  ...
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/3uOW4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3uOW4.png" alt="GITHUB_TOKEN"></a></p>