From e68e5756c5f6159a58aa340c362b51449e3c1bf2 Mon Sep 17 00:00:00 2001 From: tylertitsworth Date: Thu, 20 Jun 2024 08:21:05 -0700 Subject: [PATCH] update tokens --- .github/workflows/container-ci.yaml | 2 +- .github/workflows/lint.yaml | 9 +++------ .github/workflows/test-runner-ci.yaml | 4 ++-- .github/workflows/weekly-test.yaml | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/container-ci.yaml b/.github/workflows/container-ci.yaml index cf9f929a..d973b220 100644 --- a/.github/workflows/container-ci.yaml +++ b/.github/workflows/container-ci.yaml @@ -164,4 +164,4 @@ jobs: registry: ${{ secrets.REGISTRY }} repo: ${{ secrets.REPO }} test_dir: ${{ matrix.tests }} - token: ${{ secrets.ACTION_TOKEN || github.token }} + token: ${{ secrets.PERF_TOKEN }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 2957d79e..fba5c4ad 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,9 +16,7 @@ name: Lint permissions: read-all on: merge_group: null - pull_request_target: - types: [opened, edited, reopened, synchronize] - branches: [main] + pull_request: null concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -32,10 +30,9 @@ jobs: with: egress-policy: audit - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} with: fetch-depth: 0 - ref: "refs/pull/${{ github.event.number }}/merge" - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 if: ${{ github.event_name == 'merge_group' }} with: @@ -44,7 +41,7 @@ jobs: - uses: super-linter/super-linter/slim@88ea3923a7e1f89dd485d079f6eb5f5e8f937589 # v6.6.0 env: # To report GitHub Actions status checks - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_ACTIONS_COMMAND_ARGS: '-ignore SC.*' VALIDATE_BASH_EXEC: false VALIDATE_CHECKOV: false diff --git a/.github/workflows/test-runner-ci.yaml b/.github/workflows/test-runner-ci.yaml index 6eee4f51..0736a8c2 100644 --- a/.github/workflows/test-runner-ci.yaml +++ b/.github/workflows/test-runner-ci.yaml @@ -50,7 +50,7 @@ jobs: with: path: models-perf repository: ${{ secrets.PERF_REPO }} - token: ${{ secrets.ACTION_TOKEN }} + token: ${{ secrets.PERF_TOKEN }} - uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 with: driver: docker @@ -150,4 +150,4 @@ jobs: registry: ${{ secrets.REGISTRY }} repo: ${{ secrets.REPO }} test_dir: test-runner - token: ${{ secrets.ACTION_TOKEN }} + token: ${{ secrets.PERF_TOKEN }} diff --git a/.github/workflows/weekly-test.yaml b/.github/workflows/weekly-test.yaml index 92420473..8806a935 100644 --- a/.github/workflows/weekly-test.yaml +++ b/.github/workflows/weekly-test.yaml @@ -80,5 +80,5 @@ jobs: fetch-depth: 0 - uses: gitleaks/gitleaks-action@44c470ffc35caa8b1eb3e8012ca53c2f9bea4eb5 # v2.3.6 env: - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}