From fada31adbfa0e28801298710c61cf9f986632872 Mon Sep 17 00:00:00 2001 From: Teo Voinea <58236992+tevoinea@users.noreply.github.com> Date: Mon, 6 Dec 2021 13:43:57 +0000 Subject: [PATCH] Get workflows closer to being able to run on user forks --- .github/workflows/gen-docs.yml | 7 ++----- .github/workflows/verify-snapshot.yml | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gen-docs.yml b/.github/workflows/gen-docs.yml index 82d88a66e..498281f11 100644 --- a/.github/workflows/gen-docs.yml +++ b/.github/workflows/gen-docs.yml @@ -22,10 +22,7 @@ jobs: include-prerelease: true - 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 @@ -44,4 +41,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 f0143a613..c1e64a97b 100644 --- a/.github/workflows/verify-snapshot.yml +++ b/.github/workflows/verify-snapshot.yml @@ -36,7 +36,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({ @@ -54,7 +53,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