Skip to content

Commit 7278d1e

Browse files
committed
[CI] Configure workflow permissions (#5648)
# Description <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Closes #<issue_number> **Type of change** <!-- Please delete options that are not relevant. Remember to title the PR according to the type of change --> - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - Refactor (change restructuring the codebase without changing functionality) - Improvement (change adding some improvement to an existing functionality) - Documentation update **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> **Checklist** <!-- Please go over the list and make sure you've taken everything into account --> - I added relevant documentation - I followed the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)
1 parent f8fa6eb commit 7278d1e

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

.github/workflows/argilla-frontend.build-push-dev-frontend-docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262

6363
- name: Build Frontend
6464
run: |
65-
npm install
66-
npm run build
65+
npm install
66+
npm run build
6767
6868
- name: Set up Docker Buildx
6969
uses: docker/setup-buildx-action@v2
@@ -91,7 +91,7 @@ jobs:
9191
# Authenticate in GCP using Workload Identity Federation, so we can push the Docker image to the Google Cloud Artifact Registry
9292
- name: Authenticate to Google Cloud
9393
id: google-auth
94-
uses: 'google-github-actions/auth@v1'
94+
uses: "google-github-actions/auth@v1"
9595
with:
9696
token_format: access_token
9797
workload_identity_provider: ${{ secrets.GOOGLE_CLOUD_WIP }}

.github/workflows/argilla-frontend.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
paths:
1212
- "argilla-frontend/**"
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
pull-requests: write
18+
1419
jobs:
1520
build:
1621
name: Build argilla-frontend

.github/workflows/argilla-server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
paths:
1818
- "argilla-server/**"
1919

20+
permissions:
21+
id-token: write
22+
2023
jobs:
2124
build:
2225
name: Build `argilla-server` package

.github/workflows/argilla.docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ defaults:
1919
run:
2020
working-directory: argilla
2121

22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
2226
jobs:
2327
publish:
2428
runs-on: ubuntu-latest

.github/workflows/argilla.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
paths:
1818
- "argilla/**"
1919

20+
permissions:
21+
id-token: write
22+
2023
jobs:
2124
build:
2225
services:
@@ -85,8 +88,6 @@ jobs:
8588
# contents: read
8689
# IMPORTANT: this permission is mandatory for trusted publishing on PyPI
8790
id-token: write
88-
# This permission is needed for creating tags
89-
contents: write
9091

9192
needs:
9293
- build

.github/workflows/close-inactive-issues-bot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55

6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
610
jobs:
711
close-issues:
812
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)