Skip to content
Merged
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
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://EditorConfig.org

# top-most EditorConfig file
root=true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 2 space indentation
indent_style = space
indent_size = 2

# Avoid issues parsing cookbook files later
charset = utf-8

# Avoid cookstyle warnings
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion .expeditor/run_windows_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ If ($lastexitcode -ne 0) { Exit $lastexitcode }
Write-Output "--- Bundle Execute"

bundle exec rake
If ($lastexitcode -ne 0) { Exit $lastexitcode }
If ($lastexitcode -ne 0) { Exit $lastexitcode }
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Order is important. The last matching pattern has the most precedence.

* @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners @jaymzh
.expeditor/ @chef/infra-packages
.expeditor/ @chef/build-engineering-systems-team
19 changes: 19 additions & 0 deletions .github/workflows/allchecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: All checks pass
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]

jobs:
allchecks:
runs-on: ubuntu-latest
permissions:
checks: read
contents: read
steps:
- uses: wechuli/allcheckspassed@v1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with new recent security 3rd party mesaures, we are required to pin these checks (and others) like so:

wechuli/allcheckspassed@94f72d166474c98e0dfbfbab0e13a7bcdebca002 # v2.2.0

with:
# This seems to be working lately even for external
# contributors, so maybe we don't need to exclude it?
checks_exclude: "SonarCloud Code Analysis"
# Retry every minute for 30 minutes...
retries: 30
92 changes: 0 additions & 92 deletions .github/workflows/archived/ci-main-pull-request-checks.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: DCO Check
on: [pull_request]

permissions: {}

jobs:
dco_check_job:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
name: DCO Check
steps:
- name: Get PR Commits
uses: actionshub/get-pr-commits@main

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: actionshub/get-pr-commits@main
uses: actionshub/get-pr-commits@${sha}

id: 'get-pr-commits'
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: actionshub/dco@main
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
allow-obvious-fix-label: "obvious-fix"
46 changes: 46 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: lint

on:
pull_request:
push:
branches:
- main

concurrency:
group: lint-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
cookstyle:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: ruby_shadow:packaging
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: false
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- run: |
bundle install
bundle exec cookstyle --chefstyle -c .rubocop.yml

spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
curl --location 'https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt' --output chef_dictionary.txt
- uses: streetsidesoftware/cspell-action@v8.4.0

linelint:
runs-on: ubuntu-latest
name: Check if all files end in newline
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Linelint
uses: fernandrone/linelint@master
id: linelint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ erl_crash.dump
Gemfile.lock
*/tags
*~
vendor/
vendor/
8 changes: 8 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rules:
end-of-file:
enable: true
single-new-line: true
ignore:
# these files are changed by automated processes
- CHANGELOG.md
- VERSION
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Lint/UnderscorePrefixedVariableName:
# Configuration parameters: ContextCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'lib/mixlib/shellout/windows/core_ext.rb'
- 'lib/mixlib/shellout/windows/core_ext.rb'
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Chef Code of Conduct

Participants in this project must adhere to the [Chef Code of Conduct](https://chef.github.io/chef-oss-practices/policies/code-of-conduct/).
Participants in this project must adhere to the [Chef Code of Conduct](https://chef.github.io/chef-oss-practices/policies/code-of-conduct/).
2 changes: 1 addition & 1 deletion COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copyright © 2011-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Copyright © 2011-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ limitations under the License.
```
# Copyright

See [COPYRIGHT.md](./COPYRIGHT.md).
See [COPYRIGHT.md](./COPYRIGHT.md).
Loading
Loading