diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa1bf08..2b6f117 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,13 @@ jobs: main: runs-on: ubuntu-latest steps: + - name: 'Check token' + run: | + curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/installation/repositories + - name: 'Show env vars' + run: | + echo "Repository: $GITHUB_REPOSITORY" + echo "Repository: $GITHUB_REF_NAME" - name: 'Checkout sources' uses: actions/checkout@v3 - name: 'Setup NodeJS' diff --git a/action.yml b/action.yml index 9b4553a..6db345b 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,9 @@ runs: using: 'docker' image: 'Dockerfile' inputs: - github_token: - description: 'GitHub token for GitHub API requests' - required: true - default: ${{ github.token }} + upload: + description: 'Upload report to Code Limit' + required: false + token: + description: 'GitHub token used for upload to Code Limit' + required: false