Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github token and persist-credentials:false to all actions/checkout #1043

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/choreolib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
with:
submodules: true
fetch-depth: 0
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Fetch all history and metadata
run: |
Expand Down Expand Up @@ -87,6 +89,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Fetch all history and metadata
run: git fetch --prune --unshallow
Expand Down Expand Up @@ -128,6 +132,9 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- uses: actions/upload-artifact@v4
with:
Expand All @@ -142,6 +149,8 @@ jobs:
- uses: actions/checkout@v4
with:
repository: wpilibsuite/build-tools
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -212,6 +221,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- uses: actions/setup-python@v5
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Configure Git Credentials
run: |
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Fetch all history and metadata
run: |
Expand Down Expand Up @@ -86,7 +88,9 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}
- uses: pnpm/action-setup@v4
with:
version: 9
Expand All @@ -105,6 +109,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}
fetch-depth: 0

- name: Fetch all history and metadata
Expand Down Expand Up @@ -144,6 +150,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}
fetch-depth: 0

- name: Fetch all history and metadata
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ jobs:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CHOREOLIB_RELEASE_APP_ID }}
private-key: ${{ secrets.CHOREOLIB_RELEASE_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.CHOREO_RELEASE_PAT }}
token: ${{ steps.generate-token.outputs.token }}
persist-credentials: false

- name: Install Python dependencies
run: pip install tomlkit

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/trajoptlib-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Install dependencies (Windows)
uses: lukka/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/trajoptlib-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Install dependencies (Windows)
uses: lukka/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/trajoptlib-sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y ninja-build
Expand Down
Loading