This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): manage projects
Signed-off-by: Nicolas Lamirault <[email protected]>
- Loading branch information
1 parent
4a8c4aa
commit 457d0a4
Showing
2 changed files
with
256 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
# Copyright (C) Nicolas Lamirault <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Project / Projects Issues | ||
|
||
on: # yamllint disable-line rule:truthy | ||
issues: | ||
types: | ||
- opened | ||
- labeled | ||
|
||
jobs: | ||
issues: | ||
name: Add issue to Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Monitor Actions | ||
uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
with: | ||
config: ${{ vars.PERMISSIONS_CONFIG }} | ||
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/portefaix/projects/6 | ||
github-token: ${{ secrets.ACTIONS_PAT }} | ||
|
||
# cloud-aws: | ||
# name: Add issue to Project AWS | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/3 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/aws | ||
# label-operator: OR | ||
|
||
# cloud-azure: | ||
# name: Add issue to Project Azure | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/5 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/azure | ||
# label-operator: OR | ||
|
||
# cloud-gcp: | ||
# name: Add issue to Project GCP | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/4 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/gcp | ||
# label-operator: OR | ||
|
||
# cloud-homelab: | ||
# name: Add issue to Project Homelab | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/6 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/homelab | ||
# label-operator: OR | ||
|
||
# kubernetes: | ||
# name: Add issue to Project Kubernetes | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/14 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: area/kubernetes | ||
# label-operator: OR | ||
|
||
# terraform: | ||
# name: Add issue to Project Terraform | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/15 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: area/terraform | ||
# label-operator: OR |
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,128 @@ | ||
--- | ||
# Copyright (C) Nicolas Lamirault <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Project / Projects Pull Requests | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
|
||
jobs: | ||
pull_requests: | ||
name: Add PR to Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Monitor Actions | ||
uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
with: | ||
config: ${{ vars.PERMISSIONS_CONFIG }} | ||
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/portefaix/projects/6 | ||
github-token: ${{ secrets.ACTIONS_PAT }} | ||
|
||
# cloud-aws: | ||
# name: Add PR to Project AWS | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/3 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/aws, status/review_needed | ||
# label-operator: AND | ||
|
||
# cloud-azure: | ||
# name: Add PR to Project Azure | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/5 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/azure, status/review_needed | ||
# label-operator: AND | ||
|
||
# cloud-gcp: | ||
# name: Add PR to Project GCP | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/4 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/gcp, status/review_needed | ||
# label-operator: AND | ||
|
||
# cloud-homelab: | ||
# name: Add PR to Project Homelab | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/6 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: cloud/homelab, status/review_needed | ||
# label-operator: AND | ||
|
||
# kubernetes: | ||
# name: Add PR to Project Kubernetes | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/14 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: area/kubernetes, status/review_needed | ||
# label-operator: AND | ||
|
||
# terraform: | ||
# name: Add PR to Project Terraform | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Monitor Actions | ||
# uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
# with: | ||
# config: ${{ vars.PERMISSIONS_CONFIG }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# project-url: https://github.com/orgs/portefaix/projects/15 | ||
# github-token: ${{ secrets.ACTIONS_PAT }} | ||
# labeled: area/terraform, status/review_needed | ||
# label-operator: AND |