Skip to content

Commit

Permalink
Pin the packaging repo within GitHub workflows (osquery#7208)
Browse files Browse the repository at this point in the history
  • Loading branch information
theopolis authored Jul 25, 2021
1 parent 06b26fc commit 0a78784
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
tags:
- '*'

# Please remember to update values for both x86 and aarch64 workflows.
env:
PACKAGING_REPO: https://github.com/osquery/osquery-packaging
PACKAGING_COMMIT: 3946326992b49c4b962ef998a2c7924efa80aa26

# If the initial code sanity checks are passing, then one job
# per [`platform` * `build_type`] will start, building osquery
# and generating packages that are later attached to the commit
Expand Down Expand Up @@ -232,8 +237,10 @@ jobs:
- name: Clone the osquery-packaging repository
run: |
git clone https://github.com/osquery/osquery-packaging \
git clone ${{ env.PACKAGING_REPO }} \
${{ steps.build_paths.outputs.PACKAGING }}
cd ${{ steps.build_paths.outputs.PACKAGING }}
git checkout ${{ env.PACKAGING_COMMIT }}
# One of the tests in the test suit will spawn a Docker container
# using this socket. Allow the unprivileged user we created
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/build_x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ on:
branches:
- '*'

# Please remember to update values for both x86 and aarch64 workflows.
env:
PACKAGING_REPO: https://github.com/osquery/osquery-packaging
PACKAGING_COMMIT: 3946326992b49c4b962ef998a2c7924efa80aa26

# If the initial code sanity checks are passing, then one job
# per [`platform` * `build_type`] will start, building osquery
# and generating packages that are later attached to the commit
Expand Down Expand Up @@ -299,8 +304,10 @@ jobs:
- name: Clone the osquery-packaging repository
run: |
git clone https://github.com/osquery/osquery-packaging \
git clone ${{ env.PACKAGING_REPO }} \
${{ steps.build_paths.outputs.PACKAGING }}
cd ${{ steps.build_paths.outputs.PACKAGING }}
git checkout ${{ env.PACKAGING_COMMIT }}
# One of the tests in the test suit will spawn a Docker container
# using this socket. Allow the unprivileged user we created
Expand Down Expand Up @@ -543,8 +550,10 @@ jobs:

- name: Clone the osquery-packaging repository
run: |
git clone https://github.com/osquery/osquery-packaging \
git clone ${{ env.PACKAGING_REPO }} \
${{ steps.build_paths.outputs.PACKAGING }}
cd ${{ steps.build_paths.outputs.PACKAGING }}
git checkout ${{ env.PACKAGING_COMMIT }}
- name: Update the cache (ccache)
uses: actions/cache@v2
Expand Down Expand Up @@ -821,7 +830,9 @@ jobs:
- name: Clone the osquery-packaging repository
run: |
cd w
git clone https://github.com/osquery/osquery-packaging
git clone ${{ env.PACKAGING_REPO }}
cd ${{ steps.build_paths.outputs.PACKAGING }}
git checkout ${{ env.PACKAGING_COMMIT }}
- name: Update the cache (git submodules)
uses: actions/cache@v2
Expand Down

0 comments on commit 0a78784

Please sign in to comment.