diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..845062f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 10 + labels: + - enhancement + - dependency-management + - package-ecosystem: terraform + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 10 + labels: + - enhancement + - dependency-management diff --git a/.github/workflows/auto-assign.yaml b/.github/workflows/auto-assign.yaml new file mode 100644 index 0000000..36d7025 --- /dev/null +++ b/.github/workflows/auto-assign.yaml @@ -0,0 +1,20 @@ +name: Auto-assign Issue +on: + issues: + types: [opened] + pull_request: + types: [opened, edited, synchronize, reopened] +jobs: + run: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - name: "auto-assign issue" + uses: pozil/auto-assign-issue@v2 + with: + repo-token: ${{ secrets.PAT_GITHUB }} + teams: devops-ia + removePreviousAssignees: true diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 12953b9..81fc8d3 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -1,8 +1,8 @@ -name: 'Lock Threads' +name: "Lock Threads" on: schedule: - - cron: '50 1 * * *' + - cron: "50 1 * * *" jobs: lock: @@ -10,12 +10,12 @@ jobs: steps: - uses: dessant/lock-threads@v4 with: - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.PAT_GITHUB }} issue-comment: > I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. - issue-inactive-days: '30' + issue-inactive-days: "30" pr-comment: > I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. - pr-inactive-days: '30' + pr-inactive-days: "30" diff --git a/.github/workflows/pr-tittle.yml b/.github/workflows/pr-tittle.yml index 4abbbce..23d93c9 100644 --- a/.github/workflows/pr-tittle.yml +++ b/.github/workflows/pr-tittle.yml @@ -1,4 +1,4 @@ -name: 'Validate PR title' +name: "Validate PR title" on: pull_request_target: @@ -16,7 +16,7 @@ jobs: # https://github.com/amannn/action-semantic-pull-request/releases - uses: amannn/action-semantic-pull-request@v5.0.2 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} with: # Configure which types are allowed. # Default: https://github.com/commitizen/conventional-commit-types diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e93709b..62b558d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,19 +5,18 @@ on: push: branches: - main - - master paths: - - '**/*.tpl' - - '**/*.py' - - '**/*.tf' - - '.github/workflows/release.yml' + - "**/*.tpl" + - "**/*.py" + - "**/*.tf" + - ".github/workflows/release.yml" jobs: release: name: Release runs-on: ubuntu-latest # Skip running release workflow on forks - if: github.repository_owner == 'terraform-nexus-modules' + if: github.repository_owner == 'devops-ia' steps: - name: Checkout uses: actions/checkout@v4 @@ -34,4 +33,4 @@ jobs: @semantic-release/git@10.0.0 conventional-changelog-conventionalcommits@4.6.3 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} diff --git a/.github/workflows/stale-actions.yaml b/.github/workflows/stale-actions.yaml index 5d1e246..4d806c3 100644 --- a/.github/workflows/stale-actions.yaml +++ b/.github/workflows/stale-actions.yaml @@ -1,7 +1,7 @@ -name: 'Mark or close stale issues and PRs' +name: "Mark or close stale issues and PRs" on: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" jobs: stale: @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/stale@v6 with: - repo-token: ${{ secrets.GH_TOKEN }} + repo-token: ${{ secrets.PAT_GITHUB }} # Staling issues and PR's days-before-stale: 30 stale-issue-label: stale