You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,17 @@ A action "List GitHub Environments" é uma action criada em JavaScript para busc
10
10
Para utilizar a action em seu workflow, adicione o seguinte trecho ao seu arquivo de configuração YAML do GitHub Actions (por exemplo, `.github/workflows/main.yml`):
11
11
12
12
```yaml
13
-
- name: List environments
14
-
id: github-environments
15
-
uses: eteg/list-github-environments@v1
16
-
with:
17
-
exclude-envs: '["staging", "develop"]'
18
-
has-protection-rule: true
19
-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13
+
permissions:
14
+
actions: read
15
+
...
16
+
steps:
17
+
- name: List environments
18
+
id: github-environments
19
+
uses: eteg/list-github-environments@v1
20
+
with:
21
+
exclude-envs: '["staging", "develop"]'
22
+
has-protection-rule: true
23
+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20
24
```
21
25
22
26
**Observação importante:** Não esquecer de adicionar a permission ***actions:read*** no job onde o step do **eteg/list-github-environments** atuará.
0 commit comments