chore: bump zgosalvez/github-actions-ensure-sha-pinned-actions #428
Workflow file for this run
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
name: CICD Pipeline | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
env: | |
SLACK_NOTIFY: true | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
get-go-version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-language-versions.outputs.latest-versions }} | |
steps: | |
- uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
id: get-language-versions | |
with: | |
language: "go" | |
highest-only: true | |
remove-patch-version: true | |
action-lint: | |
name: Action Lint | |
needs: get-go-version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Setup Go ${{ needs.get-go-version.outputs.version }} | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.version }} | |
- name: Run Action Lint | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/action-lint/master/pipeline.sh) | |
get-ruby-version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-language-versions.outputs.latest-versions }} | |
steps: | |
- uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
id: get-language-versions | |
with: | |
language: "ruby" | |
highest-only: true | |
remove-patch-version: true | |
awesomebot: | |
name: Awesomebot | |
needs: get-ruby-version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Ruby ${{ needs.get-ruby-version.outputs.version }} | |
uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.148.0 | |
with: | |
ruby-version: ${{ needs.get-ruby-version.outputs.version }} | |
- name: Run Awesomebot | |
env: | |
FLAGS: "default" | |
EXCLUDE_FILES: "CHANGELOG.md" | |
WHITELIST: "https://img.shields.io" | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/awesomebot/master/pipeline.sh) | |
get-node-version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-language-versions.outputs.latest-versions }} | |
steps: | |
- uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
id: get-language-versions | |
with: | |
language: "node" | |
highest-only: true | |
remove-patch-version: true | |
markdown-lint: | |
name: Markdown Lint | |
needs: get-node-version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Setup node ${{ needs.get-node-version.outputs.version }} | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ needs.get-node-version.outputs.version }} | |
- name: Run Markdown Lint | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/markdown-lint/master/pipeline.sh) | |
env: | |
EXCLUDE_FILES: "README.md" | |
get-python-version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-language-versions.outputs.latest-versions }} | |
steps: | |
- uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
id: get-language-versions | |
with: | |
language: "python" | |
highest-only: true | |
remove-patch-version: true | |
yaml-lint: | |
name: YAML Lint | |
needs: get-python-version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Python ${{ needs.get-python-version.outputs.version }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ needs.get-python-version.outputs.version }} | |
- name: Run YAML-Lint | |
env: | |
EXCLUDE_FILES: ".github/workflows" | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/yaml-lint/master/pipeline.sh) | |
slack-workflow-status: | |
if: always() | |
name: Slack Post Workflow Notification | |
needs: | |
- action-lint | |
- awesomebot | |
- markdown-lint | |
- yaml-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Workflow Notifications | |
if: ${{ env.SLACK_NOTIFY == 'true' && github.event_name == 'push' }} | |
uses: Gamesight/slack-workflow-status@68bf00d0dbdbcb206c278399aa1ef6c14f74347a # v1.3.0 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
include_jobs: on-failure | |
include_commit_message: true |