Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 38-add-syslog-capabilities
- Loading branch information
Showing
46 changed files
with
600 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# install-cross | ||
|
||
A small github action to install [cross](https://github.com/cross-rs/cross) from its latest release. | ||
|
||
This action uses the `musl` variant. |
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,18 @@ | ||
name: 'Install cross' | ||
description: 'Install cross-rs from its latest release' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install cross | ||
shell: bash | ||
run: | | ||
cross_release_archive=cross-x86_64-unknown-linux-musl.tar.gz | ||
wget https://github.com/cross-rs/cross/releases/latest/download/${cross_release_archive} | ||
tar -xf ${cross_release_archive} | ||
rm ${cross_release_archive} | ||
mkdir -p /home/runner/.local/bin | ||
mv cross* /home/runner/.local/bin | ||
- run: cross --version --verbose | ||
shell: bash |
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,17 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
ARG ARCH | ||
|
||
RUN apt update && apt upgrade -y && apt install -y ca-certificates | ||
|
||
COPY ./target/${ARCH}/release/pulsar-exec /usr/sbin/pulsar-exec | ||
|
||
COPY .github/docker/pulsar.ini /var/lib/pulsar/pulsar.ini | ||
|
||
COPY ./rules/basic-rules.yaml /var/lib/pulsar/rules/basic-rules.yaml | ||
|
||
ENTRYPOINT [ "pulsar-exec" ] | ||
|
||
CMD [ "pulsard" ] |
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,7 @@ | ||
# Exclude everything | ||
** | ||
|
||
# # Include essential files | ||
!**/pulsar-exec | ||
!**/pulsar.ini | ||
!**/basic-rules.yaml |
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,5 @@ | ||
[desktop-notifier] | ||
enabled=false | ||
|
||
[smtp-notifier] | ||
enabled=false |
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 |
---|---|---|
@@ -1,20 +1,30 @@ | ||
name: Dependency Audit | ||
# there is a problem with a dependency of a dependency : `time`. so for now I'm keeping it manual | ||
on: workflow_dispatch | ||
# on: | ||
# pull_request: | ||
# paths: | ||
# - '**/Cargo.toml' | ||
# - '**/Cargo.lock' | ||
name: "Audit Dependencies" | ||
on: | ||
# Run manually | ||
workflow_dispatch: | ||
# push: | ||
# paths: | ||
# # Run if workflow changes | ||
# - '.github/workflows/audit.yml' | ||
# # Run on changed dependencies | ||
# - '**/Cargo.toml' | ||
# - '**/Cargo.lock' | ||
# # Run if the configuration file changes | ||
# - '**/audit.toml' | ||
# # Rerun periodicly to pick up new advisories | ||
# schedule: | ||
# - cron: '0 0 * * *' | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
security_audit: | ||
name: Audit | ||
audit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies audit | ||
uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rust-lang/audit@v1 | ||
name: Audit Rust Dependencies |
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
Oops, something went wrong.