fleet/.github/workflows
dependabot[bot] ffcfdbc15d
Bump slackapi/slack-github-action from 1.18.0 to 1.24.0 (#12293)
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="e28cf165c9"><code>e28cf16</code></a>
Automatic compilation</li>
<li><a
href="f07b4a2d03"><code>f07b4a2</code></a>
bump package version to v1.24.0</li>
<li><a
href="2c8b741a82"><code>2c8b741</code></a>
Update README.md with variable usage and links to example workflows. (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/201">#201</a>)</li>
<li><a
href="81a1dc0cd9"><code>81a1dc0</code></a>
Fixed to be able to use env of Step (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/200">#200</a>)</li>
<li><a
href="4eb7313607"><code>4eb7313</code></a>
Bump sinon from 15.0.3 to 15.0.4 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/194">#194</a>)</li>
<li><a
href="17394c7ff6"><code>17394c7</code></a>
Bump eslint-plugin-jsdoc from 40.1.1 to 43.1.1 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/195">#195</a>)</li>
<li><a
href="2746ea8222"><code>2746ea8</code></a>
Bump axios from 1.3.4 to 1.4.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/196">#196</a>)</li>
<li><a
href="1b89efce66"><code>1b89efc</code></a>
Bump eslint from 8.37.0 to 8.39.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/197">#197</a>)</li>
<li><a
href="0e608ca738"><code>0e608ca</code></a>
Bump eslint-plugin-jsdoc from 40.0.0 to 40.1.1 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/188">#188</a>)</li>
<li><a
href="02b50ad38b"><code>02b50ad</code></a>
Bump eslint from 8.35.0 to 8.37.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/189">#189</a>)</li>
<li>Additional commits viewable in <a
href="16b6c78ee7...e28cf165c9">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 12:32:30 -07:00
..
config set default shell in workflows (#8108) 2022-10-07 09:43:56 -06:00
build-and-push-fleetctl-docker.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
build-binaries.yaml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
build-orbit.yaml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
codeql-analysis.yml Bump github/codeql-action from 2.1.21 to 2.2.5 (#10220) 2023-03-01 11:39:55 -08:00
deploy-fleet-website.yml Use personal access token for workflows (#12118) 2023-06-02 16:23:23 -05:00
docs.yml add concurrency to ci (#8271) 2022-10-24 14:01:00 -06:00
dogfood-deploy.yml Warn against deploying fleetdm/fleet:main directly (#11316) 2023-04-25 13:22:59 -05:00
example-workflow.yaml Add example workflow (#11893) 2023-05-23 13:52:21 -05:00
fleet-and-orbit.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
fleetctl-preview-latest.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
fleetctl-preview.yml Bump actions/upload-artifact from 3.1.0 to 3.1.2 (#10183) 2023-04-24 11:27:56 -07:00
fleetctl-workstations-canary.yml Update fleetctl-workstations-canary for minimum os 13.4.1 (#12469) 2023-06-22 19:54:43 -04:00
fleetctl-workstations.yml Update fleetctl-workstations os update to 13.4.1 (#12471) 2023-06-22 20:05:15 -04:00
generate-desktop-targets.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
generate-nudge-targets.yml Bump actions/upload-artifact from 3.1.0 to 3.1.2 (#10183) 2023-04-24 11:27:56 -07:00
generate-osqueryd-targets.yml Generate targets for osquery 5.9.1 (#12410) 2023-06-21 23:14:52 -07:00
golangci-lint.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
goreleaser-fleet.yaml Use GitHub token in GoReleaser workflow (#12303) 2023-06-13 11:54:55 -05:00
goreleaser-orbit.yaml Use personal access token for workflows (#12118) 2023-06-02 16:23:23 -05:00
goreleaser-snapshot-fleet.yaml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
integration.yml Bump slackapi/slack-github-action from 1.18.0 to 1.24.0 (#12293) 2023-06-23 12:32:30 -07:00
pr-helm.yaml add concurrency to ci (#8271) 2022-10-24 14:01:00 -06:00
push-osquery-perf-to-ecr.yml Bump aws-actions/amazon-ecr-login from 1.5.3 to 1.6.0 (#11514) 2023-05-03 12:06:24 -07:00
README.md add concurrency to ci (#8271) 2022-10-24 14:01:00 -06:00
release-helm.yaml Use actions token during helm-publish workflow (#12430) 2023-06-21 09:30:25 -06:00
scorecards-analysis.yml Bump actions/upload-artifact from 3.1.0 to 3.1.2 (#10183) 2023-04-24 11:27:56 -07:00
test-db-changes.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
test-go.yaml Bump slackapi/slack-github-action from 1.18.0 to 1.24.0 (#12293) 2023-06-23 12:32:30 -07:00
test-native-tooling-packaging.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
test-packaging.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
test-website.yml Use personal access token for workflows (#12118) 2023-06-02 16:23:23 -05:00
test-yml-specs.yml upgrade go version to 1.19.10 (#12187) 2023-06-07 17:59:30 -03:00
test.yml generate js coverage report in CI (#12029) 2023-06-01 17:46:25 +01:00
tfsec.yml Bump github/codeql-action from 2.1.21 to 2.2.5 (#10220) 2023-03-01 11:39:55 -08:00
tfvalidate.yml Upversion github actions in tfvalidate.yml (#12005) 2023-05-28 22:54:46 -04:00
trivy_scan.yml Pin actions to commit SHA (#10204) 2023-02-28 17:55:38 -08:00
update-certs.yml add concurrency to ci (#8271) 2022-10-24 14:01:00 -06:00

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.