diff --git a/.github/workflows/gen-docs.yml b/.github/workflows/gen-docs.yml index a4a9b031e..d9704c137 100644 --- a/.github/workflows/gen-docs.yml +++ b/.github/workflows/gen-docs.yml @@ -21,10 +21,7 @@ jobs: dotnet-version: 3.1.x - name: Generate docs - run: | - touch version.json - touch version_dev.json - + run: | # Run CLI dotnet run -p src/Microsoft.ComponentDetection help scan 2> help.txt || true cat < docs/detector-arguments.md @@ -43,4 +40,4 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: 'Update docs' - file_pattern: '*.md' \ No newline at end of file + file_pattern: '*.md' diff --git a/.github/workflows/verify-snapshot.yml b/.github/workflows/verify-snapshot.yml index 56cf5289e..571782f6a 100644 --- a/.github/workflows/verify-snapshot.yml +++ b/.github/workflows/verify-snapshot.yml @@ -35,7 +35,6 @@ jobs: uses: actions/github-script@v3 with: result-encoding: string - github-token: ${{ secrets.GH_Private_Repo_Pat }} script: | const res = await github.paginate( github.actions.listArtifactsForRepo.endpoint.merge({ @@ -53,7 +52,7 @@ jobs: - name: Download latest release snapshot working-directory: ${{ github.workspace }}/release-output - run: curl -v -L -u octocat:${{ secrets.GH_Private_Repo_Pat }} -o output.zip "${{ steps.download-latest-release-snapshot.outputs.result }}" + run: curl -v -L -o output.zip "${{ steps.download-latest-release-snapshot.outputs.result }}" - name: Unzip latest release snapshot run: unzip output.zip