-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: fix Ansible Lint workflow failures (#28)
- Self-hosted runner changed into GitHub-hosted runner. - Code of Conduct was deleted from issues template. I think its bit too much in every issue. - Slack channel information fixed. - Security report template delated as GitHub already has a default template for security issues.
- Loading branch information
1 parent
cfef80c
commit e1944a6
Showing
22 changed files
with
165 additions
and
256 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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.github/workflows/ansible-lint.yml → ...ed_workflows/ansible-lint-self-hosted.yml
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
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,40 @@ | ||
--- | ||
name: Ansible Lint on GitHub-Hosted Runner | ||
run-name: ansible-lint validation on PR-${{ github.event.pull_request.number }} | ||
on: | ||
pull_request: | ||
branches: ["main", "devel"] | ||
jobs: | ||
ansible-lint: | ||
name: Ansible Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Populate ansible config | ||
run: | | ||
cat <<EOF > ansible.cfg | ||
[defaults] | ||
collections_path = ./collections:./imported/collections | ||
roles_path = ./roles:./imported:./imported/roles | ||
[galaxy] | ||
server_list = automation_hub_published, automation_hub_validated, galaxy | ||
[galaxy_server.automation_hub_published] | ||
url=https://console.redhat.com/api/automation-hub/content/published/ | ||
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token | ||
token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }} | ||
[galaxy_server.automation_hub_validated] | ||
url=https://console.redhat.com/api/automation-hub/content/validated/ | ||
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token | ||
token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }} | ||
[galaxy_server.galaxy] | ||
url=https://galaxy.ansible.com/ | ||
EOF | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@main |
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
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,19 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Check and close inactive | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
|
||
jobs: | ||
close-inactive-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: close-issues | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: 'inactive' | ||
inactive-day: 7 |
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,20 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Check inactive | ||
|
||
on: | ||
schedule: | ||
- cron: "0 5 * * *" | ||
|
||
jobs: | ||
check-inactive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check-inactive | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'check-inactive' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
inactive-day: 30 | ||
issue-state: open | ||
exclude-labels: 'bug,documentation,enhancement,invalid' |
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,21 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
issue-labeled: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create comment | ||
uses: actions-cool/issues-helper@v3 | ||
if: github.event.label.name == 'inactive' | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}. Please ensure that you have filled out the issue template as much as possible and have answered any further questions asked. If you have not done so in the next 7 days this issue will be automatically closed.' |
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,21 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Issue Remove Labels | ||
|
||
on: | ||
issues: | ||
types: [edited, reopened, labeled] | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
remove-inactive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: remove inactive | ||
if: github.event.issue.state == 'open' && github.event.issue.user != 'github-actions' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'remove-labels' | ||
issue-number: ${{ github.event.issue.number }} | ||
labels: 'inactive' |
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,14 @@ | ||
--- | ||
name: Refresh the automation hub token | ||
# the token expires every 30 days, so we need to refresh it | ||
on: | ||
schedule: | ||
- cron: "0 12 1,15 * *" # run 12pm on the 1st and 15th of the month | ||
workflow_dispatch: | ||
jobs: | ||
refresh: | ||
uses: ansible/team-devtools/.github/workflows/ah_token_refresh.yml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.RH_AUTOMATION_HUB_TOKEN }} |
14 changes: 14 additions & 0 deletions
14
.github/workflows/token_refresh_rh_subscription_manager.yml
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,14 @@ | ||
--- | ||
name: Refresh the RHSM token | ||
# the token expires every 30 days, so we need to refresh it | ||
on: | ||
schedule: | ||
- cron: "0 12 1,15 * *" # run 12pm on the 1st and 15th of the month | ||
workflow_dispatch: | ||
jobs: | ||
refresh: | ||
uses: ansible/team-devtools/.github/workflows/ah_token_refresh.yml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.RHSM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.