diff --git a/.github/labeler.yaml b/.github/labeler.yaml index eb29d70..34f6a52 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -1,27 +1,45 @@ # Modules ":floppy_disk: account": -- modules/account/**/* +- changed-files: + - any-glob-to-any-file: + - modules/account/**/* ":floppy_disk: iam-group": -- modules/iam-group/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-group/**/* ":floppy_disk: iam-oidc-identity-provider": -- modules/iam-oidc-identity-provider/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-oidc-identity-provider/**/* ":floppy_disk: iam-policy": -- modules/iam-policy/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-policy/**/* ":floppy_disk: iam-predefined-policies": -- modules/iam-predefined-policies/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-predefined-policies/**/* ":floppy_disk: iam-role": -- modules/iam-role/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-role/**/* ":floppy_disk: iam-saml-identity-provider": -- modules/iam-saml-identity-provider/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-saml-identity-provider/**/* ":floppy_disk: iam-user": -- modules/iam-user/**/* +- changed-files: + - any-glob-to-any-file: + - modules/iam-user/**/* ":floppy_disk: region": -- modules/region/**/* +- changed-files: + - any-glob-to-any-file: + - modules/region/**/* diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml index d5ac851..aac2537 100644 --- a/.github/workflows/pull-request-labeler.yaml +++ b/.github/workflows/pull-request-labeler.yaml @@ -7,12 +7,17 @@ jobs: label-pr: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: - name: Add Labels for PR uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler.yaml + dot: true sync-labels: true - name: Add PR Size Labels for PR