Skip to content

Commit 7634834

Browse files
fix: updated dependabot file location and reused changelog workflow for shared workflow repo (#66)
1 parent 44f0b87 commit 7634834

File tree

6 files changed

+58
-56
lines changed

6 files changed

+58
-56
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
---
61
version: 2
7-
updates:
8-
- package-ecosystem: "github-actions" # See documentation for possible values
9-
directory: "/" # Location of package manifests
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
# Workflow files stored in the
5+
# default location of `.github/workflows`
6+
directory: '/' # Location of package manifests
107
schedule:
11-
interval: "weekly"
12-
# Add assignees
8+
interval: 'weekly'
9+
day: 'sunday'
10+
time: '09:00'
11+
timezone: 'America/Toronto'
12+
open-pull-requests-limit: 3
1313
assignees:
14-
- "clouddrove-ci"
15-
# Add reviewer
16-
reviewers:
17-
- "anmolnagpal"
14+
- "clouddrove-ci"
15+
reviewers:
16+
- "d4kverma"
17+
- "anmolnagpal"
18+
- package-ecosystem: 'terraform'
19+
directory: '*' # Location of package manifests
20+
schedule:
21+
interval: 'weekly'
22+
day: 'sunday'
23+
time: '09:00'
24+
timezone: 'America/Toronto'
25+
open-pull-requests-limit: 3
26+
assignees:
27+
- "clouddrove-ci"
28+
reviewers:
29+
- "d4kverma"
30+
- "anmolnagpal"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: changelog
2+
permissions: write-all
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
jobs:
9+
changelog:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
11+
with:
12+
branch: 'master'
13+
secrets:
14+
GITHUB: ${{ secrets.GITHUB }}

.github/workflows/changelog.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ on:
99
secrets:
1010
GITHUB:
1111
required: true
12-
description: 'PAT of the user to run the jobs.'
13-
push:
14-
tags:
15-
- "*"
12+
description: 'PAT of the user to run the jobs.'
1613

1714
jobs:
1815
create_changelog:

.github/workflows/dependabot.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/helm.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111
required: false
1212
type: string
1313
description: 'EKS cluster name'
14-
aws-region:
14+
aws_region:
1515
required: false
1616
type: string
17-
description: 'AWS EKS cluster region'
17+
default: us-east-1
1818
azure-cluster-name:
1919
required: false
2020
type: string
@@ -62,8 +62,14 @@ on:
6262
description: 'AWS Access Key ID'
6363
required: false
6464
AWS_SECRET_ACCESS_KEY:
65-
description: 'AWS Secret Access Key'
6665
required: false
66+
description: 'AWS Secret Access Key'
67+
AWS_SESSION_TOKEN:
68+
required: false
69+
description: 'AWS Session Token'
70+
BUILD_ROLE:
71+
required: false
72+
description: 'AWS OIDC role for aws authentication'
6773
AZURE_CREDENTIALS:
6874
description: 'Azure Credentilas'
6975
required: false
@@ -77,11 +83,15 @@ jobs:
7783

7884
- name: Configure AWS credentials
7985
if: ${{ inputs.provider == 'aws' }}
80-
uses: aws-actions/configure-aws-credentials@v3
86+
uses: aws-actions/configure-aws-credentials@v2
8187
with:
8288
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
8389
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
84-
aws-region: ${{ inputs.aws-region }}
90+
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
91+
role-to-assume: ${{ secrets.BUILD_ROLE }}
92+
aws-region: ${{ inputs.aws_region }}
93+
role-duration-seconds: 900
94+
role-skip-session-tagging: true
8595

8696
- name: Install Azure CLI
8797
if: ${{ inputs.provider == 'azure' }}

docs/helm.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
aws:
2525
uses: clouddrove/github-shared-workflows/.github/workflows/helm.yml@master
2626
secrets:
27-
AWS_ACCESS_KEY_ID: # AWS Access Key ID
28-
AWS_SECRET_ACCESS_KEY: # AWS Secret Access Key ID
27+
BUILD_ROLE: # AWS OIDC role for aws authentication
2928
with:
3029
provider: # aws
3130
aws-region: # AWS region
32-
helm-chart-directory: # Helm chart directory from repo
3331
eks-cluster-name: # EKS cluster name
3432
release-name: # Helm chart realease name
3533
helm-chart-directory: # Helm chart directory from repo

0 commit comments

Comments
 (0)