Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.18.0 to 1.24.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/slackapi/slack-github-action/releases">slackapi/slack-github-action's releases</a>.</em></p> <blockquote> <h2>Slack Send V1.24.0</h2> <h2>What's Changed</h2> <ul> <li>Add in testing instructions for maintainer's guide and standardize bullet point punctuation by <a href="https://github.com/hello-ashleyintech"><code>@hello-ashleyintech</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/140">slackapi/slack-github-action#140</a></li> <li>Added checks for bot token and webhook url length by <a href="https://github.com/koki-develop"><code>@koki-develop</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/124">slackapi/slack-github-action#124</a></li> <li>Add channel_id output parameter by <a href="https://github.com/maso7"><code>@maso7</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/149">slackapi/slack-github-action#149</a></li> <li><a href="https://redirect.github.com/slackapi/slack-github-action/issues/171">#171</a> Update Technique 2 to use Actions context instead of values property by <a href="https://github.com/mwbrooks"><code>@mwbrooks</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/172">slackapi/slack-github-action#172</a></li> <li>Fix interpolation of variables in file-based payloads by <a href="https://github.com/filmaj"><code>@filmaj</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/200">slackapi/slack-github-action#200</a></li> <li>Update README.md with variable usage and links to example workflows by <a href="https://github.com/filmaj"><code>@filmaj</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/201">slackapi/slack-github-action#201</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/koki-develop"><code>@koki-develop</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/124">slackapi/slack-github-action#124</a></li> <li><a href="https://github.com/maso7"><code>@maso7</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/149">slackapi/slack-github-action#149</a></li> <li><a href="https://github.com/mwbrooks"><code>@mwbrooks</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/172">slackapi/slack-github-action#172</a></li> <li><a href="https://github.com/hnarimiya"><code>@hnarimiya</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/200">slackapi/slack-github-action#200</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/slackapi/slack-github-action/compare/v1.23.0...v1.24.0">https://github.com/slackapi/slack-github-action/compare/v1.23.0...v1.24.0</a></p> <h2>Slack Send V1.23.0</h2> <h2>What's Changed</h2> <ul> <li>Bump node from 12 to 16 by <a href="https://github.com/quinnjn"><code>@quinnjn</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/128">slackapi/slack-github-action#128</a></li> <li>Bump eslint from 8.23.0 to 8.24.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/135">slackapi/slack-github-action#135</a></li> <li>Bump <code>@actions/core</code> from 1.9.1 to 1.10.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/134">slackapi/slack-github-action#134</a></li> <li>Bump <code>@actions/github</code> from 5.0.3 to 5.1.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/133">slackapi/slack-github-action#133</a></li> <li>Use https proxy agent by <a href="https://github.com/EHitchcockIAG"><code>@EHitchcockIAG</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/132">slackapi/slack-github-action#132</a></li> <li>Release v1.23.0 by <a href="https://github.com/hello-ashleyintech"><code>@hello-ashleyintech</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/139">slackapi/slack-github-action#139</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/quinnjn"><code>@quinnjn</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/128">slackapi/slack-github-action#128</a></li> <li><a href="https://github.com/EHitchcockIAG"><code>@EHitchcockIAG</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/132">slackapi/slack-github-action#132</a></li> <li><a href="https://github.com/hello-ashleyintech"><code>@hello-ashleyintech</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/139">slackapi/slack-github-action#139</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/slackapi/slack-github-action/compare/v1.22.0...v1.23.0">https://github.com/slackapi/slack-github-action/compare/v1.22.0...v1.23.0</a></p> <h2>Slack Send V1.22.0</h2> <h2>What's Changed</h2> <ul> <li>feat(message): support multiple channel IDs by <a href="https://github.com/treemmett"><code>@treemmett</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/126">slackapi/slack-github-action#126</a> (fixes <a href="https://redirect.github.com/slackapi/slack-github-action/issues/118">#118</a>)</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/treemmett"><code>@treemmett</code></a> made their first contribution in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/126">slackapi/slack-github-action#126</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0">https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0</a></p> <h2>Slack Send V1.21.0</h2> <h2>What's Changed</h2> <ul> <li>updated to 1.21.0, fixed update-ts by <a href="https://github.com/stevengill"><code>@stevengill</code></a> in <a href="https://redirect.github.com/slackapi/slack-github-action/pull/110">slackapi/slack-github-action#110</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/slackapi/slack-github-action/compare/v1.20.0...v1.21.0">https://github.com/slackapi/slack-github-action/compare/v1.20.0...v1.21.0</a></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|---|---|---|
| .. | ||
| config | ||
| build-and-push-fleetctl-docker.yml | ||
| build-binaries.yaml | ||
| build-orbit.yaml | ||
| codeql-analysis.yml | ||
| deploy-fleet-website.yml | ||
| docs.yml | ||
| dogfood-deploy.yml | ||
| example-workflow.yaml | ||
| fleet-and-orbit.yml | ||
| fleetctl-preview-latest.yml | ||
| fleetctl-preview.yml | ||
| fleetctl-workstations-canary.yml | ||
| fleetctl-workstations.yml | ||
| generate-desktop-targets.yml | ||
| generate-nudge-targets.yml | ||
| generate-osqueryd-targets.yml | ||
| golangci-lint.yml | ||
| goreleaser-fleet.yaml | ||
| goreleaser-orbit.yaml | ||
| goreleaser-snapshot-fleet.yaml | ||
| integration.yml | ||
| pr-helm.yaml | ||
| push-osquery-perf-to-ecr.yml | ||
| README.md | ||
| release-helm.yaml | ||
| scorecards-analysis.yml | ||
| test-db-changes.yml | ||
| test-go.yaml | ||
| test-native-tooling-packaging.yml | ||
| test-packaging.yml | ||
| test-website.yml | ||
| test-yml-specs.yml | ||
| test.yml | ||
| tfsec.yml | ||
| tfvalidate.yml | ||
| trivy_scan.yml | ||
| update-certs.yml | ||
Github Actions
Fleet uses Github Actions for continuous integration (CI). This document describes best practices and at patterns for writing and maintaining Fleet's Github Actions workflows.
Bash
By default, Github Actions sets the shell to bash -e for linux and MacOS runners. To help write
safer bash scripts in run jobs and avoid common issues, override the default by adding the following
to the workflow file
defaults:
run:
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
shell: bash
By specifying the default shell to bash, some extra flags are set. The option pipefail changes
the behaviour when using the pipe | operator such that if any command in a pipeline fails, that
commands return code will be used a the return code for the whole pipeline. Consider the following
example in test-go.yaml
- name: Run Go Tests
run: |
# omitted ...
make test-go 2>&1 | tee /tmp/gotest.log
If the pipefail option was not set, this job would always succeed because tee would always
return success. This is not the intended behavior. Instead, we want the job to fail if make test-go fails.
Concurrency
Github Action runners are limited. If a lot of workflows are queued, they will wait in pending until a runner becomes available. This has caused issue in the past where workflows take an excessively long time to start. To help with this issue, use the following in workflows
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
cancel-in-progress: true
When a workflow is triggered via a pull request, it will cancel previous running workflows for that
pull request. This is especially useful when changes are pushed to a pull request frequently.
Manually triggered workflows, workflows that run on a schedule, and workflows triggered by pushes to
main are unaffected.