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

Grant GitHub Actions workflows access to OIDC token #3930

Merged
merged 1 commit into from
Jul 9, 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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-master skip-stable
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -178,6 +181,9 @@ jobs:
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event_name == 'schedule' }} # skip-pr skip-stable
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -332,6 +338,9 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -490,6 +499,9 @@ jobs:
build-linux-pr: # job-name skip-master skip-stable
runs-on: ubuntu-latest
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-master skip-stable
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -646,6 +658,9 @@ jobs:
build-linux-master: # job-name skip-pr skip-stable
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event_name == 'schedule' }} # skip-pr skip-stable
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -807,6 +822,9 @@ jobs:
build-linux-stable: # job-name skip-master skip-pr
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -990,6 +1008,9 @@ jobs:
runs-on: macos-13 # skip-aarch64
env: # skip-aarch64
MACOSX_DEPLOYMENT_TARGET: 10.12 # skip-aarch64
permissions:
id-token: write
contents: read
strategy:
matrix:
mode:
Expand Down Expand Up @@ -1118,6 +1139,9 @@ jobs:
runs-on: macos-latest # skip-x86_64
env: # skip-x86_64
MACOSX_DEPLOYMENT_TARGET: 11.0 # skip-x86_64
permissions:
id-token: write
contents: read
strategy:
matrix:
mode:
Expand Down
3 changes: 3 additions & 0 deletions ci/actions-templates/linux-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs: # skip-master skip-pr skip-stable
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-master skip-stable
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event_name == 'schedule' }} # skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions ci/actions-templates/macos-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs: # skip-x86_64 skip-aarch64
runs-on: macos-13 # skip-aarch64
env: # skip-aarch64
MACOSX_DEPLOYMENT_TARGET: 10.12 # skip-aarch64
permissions:
id-token: write
contents: read
strategy:
matrix:
mode:
Expand Down
3 changes: 3 additions & 0 deletions ci/actions-templates/windows-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs: # skip-master skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down
Loading