-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,052 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,19 @@ permissions: | |
jobs: | ||
remove-labels: | ||
runs-on: ubuntu-latest | ||
# This job contains steps which are expected to fail. | ||
continue-on-error: true | ||
steps: | ||
- name: Is comment from a collaborator? | ||
uses: octokit/[email protected] | ||
with: | ||
route: GET /repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Only remove labels if they are NOT a collaborator. | ||
# Reason being, a collaborator may post a comment and add a waiting-response label. | ||
- uses: actions-ecosystem/action-remove-labels@v1 | ||
if: ${{ failure() }} | ||
with: | ||
labels: | | ||
stale | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,21 @@ permissions: | |
jobs: | ||
add-labels: | ||
runs-on: ubuntu-latest | ||
# This job contains steps which are expected to fail. | ||
continue-on-error: true | ||
steps: | ||
- name: Is opened by a collaborator? | ||
uses: octokit/[email protected] | ||
with: | ||
route: GET /repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Only add triage labels if they are NOT a collaborator. | ||
# This prevents the needs-triage label from being added. | ||
- uses: actions/checkout@v2 | ||
if: ${{ failure() }} | ||
- uses: github/[email protected] | ||
if: ${{ failure() }} | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/labeler-issue-triage.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "gitlab_group_access_token Resource - terraform-provider-gitlab" | ||
subcategory: "" | ||
description: |- | ||
This resource allows you to create and manage Group Access Token for your GitLab Groups. (Introduced in GitLab 14.7) | ||
--- | ||
|
||
# gitlab_group_access_token (Resource) | ||
|
||
This resource allows you to create and manage Group Access Token for your GitLab Groups. (Introduced in GitLab 14.7) | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "gitlab_group_access_token" "example" { | ||
group = "25" | ||
name = "Example project access token" | ||
expires_at = "2020-03-14" | ||
access_level = "developer" | ||
scopes = ["api"] | ||
} | ||
resource "gitlab_group_variable" "example" { | ||
group = "25" | ||
key = "gat" | ||
value = gitlab_group_access_token.example.token | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **group** (String) The ID or path of the group to add the group access token to. | ||
- **name** (String) The name of the group access token. | ||
- **scopes** (Set of String) The scope for the group access token. It determines the actions which can be performed when authenticating with this token. Valid values are: `api`, `read_api`, `read_registry`, `write_registry`, `read_repository`, `write_repository`. | ||
|
||
### Optional | ||
|
||
- **access_level** (String) The access level for the group access token. Valid values are: `guest`, `reporter`, `developer`, `maintainer`. | ||
- **expires_at** (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD. Default is never. | ||
- **id** (String) The ID of this resource. | ||
|
||
### Read-Only | ||
|
||
- **active** (Boolean) True if the token is active. | ||
- **created_at** (String) Time the token has been created, RFC3339 format. | ||
- **revoked** (Boolean) True if the token is revoked. | ||
- **token** (String, Sensitive) The group access token. This is only populated when creating a new group access token. This attribute is not available for imported resources. | ||
- **user_id** (Number) The user id associated to the token. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# A GitLab Group Access Token can be imported using a key composed of `<group-id>:<token-id>`, e.g. | ||
terraform import gitlab_group_access_token.example "12345:1" | ||
|
||
# ATTENTION: the `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# A GitLab Group Access Token can be imported using a key composed of `<group-id>:<token-id>`, e.g. | ||
terraform import gitlab_group_access_token.example "12345:1" | ||
|
||
# ATTENTION: the `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
resource "gitlab_group_access_token" "example" { | ||
group = "25" | ||
name = "Example project access token" | ||
expires_at = "2020-03-14" | ||
access_level = "developer" | ||
|
||
scopes = ["api"] | ||
} | ||
|
||
resource "gitlab_group_variable" "example" { | ||
group = "25" | ||
key = "gat" | ||
value = gitlab_group_access_token.example.token | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.