From 3fe89fb18e6a9d7934abd7ebd3eefd2c9a42e39f Mon Sep 17 00:00:00 2001 From: Liam Monninger Date: Thu, 5 Oct 2023 21:42:22 -0700 Subject: [PATCH] [CI] fix internal repo access. --- .github/workflows/check.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/release.yml | 38 +++++++++++++++++----------------- .gitignore | 1 + 4 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c6b06a0d..80b93dad 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Setup uses: ./.github/actions/setup-linux-x86_64 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 520dcdb7..1c1de772 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Set up Rust uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16a478c6..aff75daf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,12 +25,12 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Bump version and push tag id: create_tag uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token + GITHUB_token: ${{ secrets.CI_PAT }} # if you don't want to set write permissions use a PAT token WITH_V: false DEFAULT_BUMP: patch @@ -42,7 +42,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + GITHUB_token: ${{ secrets.CI_PAT }} # This token is provided by Actions, you do not need to create your own token with: tag_name: ${{ steps.create_tag.outputs.tag }} release_name: Release ${{ steps.create_tag.outputs.tag }} @@ -53,7 +53,7 @@ jobs: - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./m1-with-submodules.tar.gz @@ -70,7 +70,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Setup uses: ./.github/actions/setup-linux-x86_64 @@ -90,7 +90,7 @@ jobs: - name: Upload subnet uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/subnet @@ -100,7 +100,7 @@ jobs: - name: Upload movement uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/movement @@ -118,7 +118,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Install Dependencies run: | @@ -148,7 +148,7 @@ jobs: - name: Upload subnet uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/subnet @@ -158,7 +158,7 @@ jobs: - name: Upload movement uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/movement @@ -176,7 +176,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -195,7 +195,7 @@ jobs: - name: Upload subnet uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./subnet-aarch64-linux @@ -205,7 +205,7 @@ jobs: - name: Upload movement uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./movement-aarch64-linux @@ -223,7 +223,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Install oxcross run: | @@ -248,7 +248,7 @@ jobs: - name: Upload subnet uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/subnet @@ -258,7 +258,7 @@ jobs: - name: Upload movement uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/movement @@ -276,7 +276,7 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CI_PAT }} - name: Add mingw run: apt-get install -y mingw-w64 @@ -296,7 +296,7 @@ jobs: - name: Upload subnet uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/subnet @@ -306,7 +306,7 @@ jobs: - name: Upload movement uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_token: ${{ secrets.CI_PAT }} with: upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid asset_path: ./m1/target/release/movement diff --git a/.gitignore b/.gitignore index cff6b599..b82f5971 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ cmd/simulator/simulator-keys-temp/* .viewer/ .searcher/ .replayer/ +tokens \ No newline at end of file