Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Alpine",
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.21",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-extra/features/act:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"github.vscode-github-actions",
"github.copilot",
"github.copilot-chat",
"ms-vscode.makefile-tools",
"esbenp.prettier-vscode"
]
}
}
}
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a bug report
title: ""
labels: bug, needs triage
assignees: ""
---

<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->

**Description:**
A clear and concise description of what the bug is.

**Action version:**
Specify the action version

**Platform:**

- [ ] Ubuntu
- [ ] macOS
- [ ] Windows

**Runner type:**

- [ ] Hosted
- [ ] Self-hosted

**Tools version:**

<!--- Please specify versions of node and package manager (npm, yarn, pnpm and etc)-->

**Repro steps:**
A description with steps to reproduce the issue. If you have a public example or repository to share, please provide the link.

**Expected behavior:**
A description of what you expected to happen.

**Actual behavior:**
A description of what is actually happening.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
55 changes: 55 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2
updates:
- package-ecosystem: docker
open-pull-requests-limit: 20
directory: /
schedule:
interval: weekly
day: friday
time: "04:00"
groups:
docker-dependencies:
patterns:
- "*"
cooldown:
default-days: 7
- package-ecosystem: github-actions
open-pull-requests-limit: 20
directories:
- /
- /actions/**/*
schedule:
interval: weekly
day: friday
time: "04:00"
groups:
github-actions-dependencies:
patterns:
- "*"
cooldown:
default-days: 7
- package-ecosystem: composer
open-pull-requests-limit: 20
versioning-strategy: increase
directories:
- /tests/php-project
- /tests/php-project/tools
schedule:
interval: weekly
day: friday
time: "04:00"
groups:
php-dependencies:
patterns:
- "*"
cooldown:
default-days: 7
- package-ecosystem: devcontainers
open-pull-requests-limit: 20
directory: /
schedule:
interval: weekly
day: friday
time: "04:00"
cooldown:
default-days: 7
4 changes: 4 additions & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
quiet: true
skip-path:
- (^|/)vendor/
8 changes: 8 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"threshold": 5,
"ignore": [
"**/vendor/**",
"**/actions/**/README.md",
"**/.github/workflows/*.md"
]
}
46 changes: 46 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"enabledManagers": ["github-actions", "custom.regex"],
"semanticCommits": "enabled",
"minimumReleaseAge": "7 days",
"minimumReleaseAgeBehaviour": "timestamp-optional",
"pinDigests": true,
"packageRules": [
{
"description": "Dependabot is the primary dependency updater.",
"matchPackageNames": ["*"],
"enabled": false
},
{
"description": "Update docker:// action references unsupported by Dependabot.",
"matchDatasources": ["docker"],
"matchDepTypes": ["docker"],
"enabled": true
},
{
"description": "Keep the PHP runtime and Composer bootstrap current.",
"matchManagers": ["custom.regex"],
"enabled": true,
"automerge": false
}
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/^\\.php-version$/"],
"matchStrings": ["(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)"],
"datasourceTemplate": "github-tags",
"depNameTemplate": "php/php-src",
"versioningTemplate": "semver-coerced",
"extractVersionTemplate": "^php-(?<version>\\d+\\.\\d+)\\.\\d+$"
},
{
"customType": "regex",
"managerFilePatterns": ["/^actions/setup-php/action\\.yml$/"],
"matchStrings": ["tools: composer:(?<currentValue>\\d+\\.\\d+\\.\\d+)"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "composer/composer"
}
]
}
17 changes: 17 additions & 0 deletions .github/workflows/__greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Greetings

on: # zizmor: ignore[dangerous-triggers] shared workflow handles PR metadata without checking out PR code
issues:
types: [opened]
pull_request_target:
branches: [main]

permissions: {}

jobs:
greetings:
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0
permissions:
contents: read
issues: write
pull-requests: write
57 changes: 57 additions & 0 deletions .github/workflows/__main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Internal - Main - Continuous Integration
on:
push:
branches:
- main
tags:
- "*"
workflow_dispatch: null
schedule:
- cron: 25 8 * * 1
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
uses: $/.github/workflows/__shared-ci.yml
permissions:
actions: read
contents: read
id-token: write
security-events: write
statuses: write
issues: write
packages: read
pull-requests: write
release:
needs: ci
if: github.event_name != 'schedule'
uses: hoverkraft-tech/ci-github-publish/.github/workflows/release-actions.yml@f06e0e72a76bfca57c34d08d03e5c1914275fd4c # 2.0.0
permissions:
contents: read
with:
update-all: ${{ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' }}
github-app-client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
merge-method: squash
# yamllint disable rule:line-length
extra-badges: |
[
{
"label": "GitHub Verified Creator",
"url": "https://img.shields.io/badge/GitHub-Verified%20Creator-4493F8?logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJyZ2IoNjgsIDE0NywgMjQ4KSI+CiAgPHBhdGggZD0ibTkuNTg1LjUyLjkyOS42OGMuMTUzLjExMi4zMzEuMTg2LjUxOC4yMTVsMS4xMzguMTc1YTIuNjc4IDIuNjc4IDAgMCAxIDIuMjQgMi4yNGwuMTc0IDEuMTM5Yy4wMjkuMTg3LjEwMy4zNjUuMjE1LjUxOGwuNjguOTI4YTIuNjc3IDIuNjc3IDAgMCAxIDAgMy4xN2wtLjY4LjkyOGExLjE3NCAxLjE3NCAwIDAgMC0uMjE1LjUxOGwtLjE3NSAxLjEzOGEyLjY3OCAyLjY3OCAwIDAgMS0yLjI0MSAyLjI0MWwtMS4xMzguMTc1YTEuMTcgMS4xNyAwIDAgMC0uNTE4LjIxNWwtLjkyOC42OGEyLjY3NyAyLjY3NyAwIDAgMS0zLjE3IDBsLS45MjgtLjY4YTEuMTc0IDEuMTc0IDAgMCAwLS41MTgtLjIxNUwzLjgzIDE0LjQxYTIuNjc4IDIuNjc4IDAgMCAxLTIuMjQtMi4yNGwtLjE3NS0xLjEzOGExLjE3IDEuMTcgMCAwIDAtLjIxNS0uNTE4bC0uNjgtLjkyOGEyLjY3NyAyLjY3NyAwIDAgMSAwLTMuMTdsLjY4LS45MjhjLjExMi0uMTUzLjE4Ni0uMzMxLjIxNS0uNTE4bC4xNzUtMS4xNGEyLjY3OCAyLjY3OCA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NyA4Ljk0bDMuMjItMy4yMmEuNzUxLjc1MSAwIDAgMSAxLjA0Mi4wMTguNzUxLjc1MSAwIDAgMSAuMDE4IDEuMDQyWiI+PC9wYXRoPgo8L3N2Zz4K"
}
]
secrets:
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
sync-docs:
needs: release
if: github.event_name != 'schedule' && github.ref_name == github.event.repository.default_branch && needs.release.outputs.artifact-id
uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@f3c9291760d927e6214e8d5f0a376af2d537c369 # 0.4.0
permissions:
contents: read
with:
artifact-id: ${{ needs.release.outputs.artifact-id }}
github-app-client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
secrets:
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
31 changes: 31 additions & 0 deletions .github/workflows/__need-fix-to-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Need fix to Issue

on:
push:
branches:
- main
workflow_dispatch:
inputs:
#checkov:skip=CKV_GHA_7: required
manual-commit-ref:
description: "The SHA of the commit to get the diff for"
required: true
manual-base-ref:
description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here"
required: false

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0
permissions:
contents: read
issues: write
with:
manual-commit-ref: ${{ inputs.manual-commit-ref }}
manual-base-ref: ${{ inputs.manual-base-ref }}
22 changes: 22 additions & 0 deletions .github/workflows/__pull-request-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Internal - Pull request - Continuous Integration
on:
merge_group: null
pull_request:
branches:
- main
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
uses: $/.github/workflows/__shared-ci.yml
permissions:
actions: read
contents: read
id-token: write
security-events: write
statuses: write
issues: write
packages: read
pull-requests: write
43 changes: 43 additions & 0 deletions .github/workflows/__renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Internal - Renovate dependency updates

on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "23 4 * * 5"

permissions: {}

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
renovate:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Generate GitHub App token
id: generate-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env] scheduled maintenance uses the CI bot
permission-checks: read
permission-contents: write
permission-issues: write
permission-pull-requests: write
permission-statuses: write
permission-workflows: write

- name: Run Renovate
uses: renovatebot/github-action@1c0cf989c02653fba0efe7ca5772338860ca71dc # v46.3.12
with:
token: ${{ steps.generate-token.outputs.token }}
env:
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_ONBOARDING: "false"
RENOVATE_REQUIRE_CONFIG: required
RENOVATE_USERNAME: ${{ steps.generate-token.outputs.app-slug }}[bot]
RENOVATE_PLATFORM_COMMIT: enabled
18 changes: 18 additions & 0 deletions .github/workflows/__semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: "Pull Request - Semantic Lint"

on: # zizmor: ignore[dangerous-triggers] shared workflow handles PR metadata without checking out PR code
pull_request_target:
types:
- opened
- edited
- synchronize

permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0
permissions:
contents: write
pull-requests: write
Loading
Loading