Skip to content

Commit

Permalink
Merge branch 'MAIN' into USER_DETECT
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlgorythm authored Dec 12, 2023
2 parents 8323f3c + b97a239 commit 86e7a79
Show file tree
Hide file tree
Showing 12 changed files with 175 additions and 280 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
allow:
- dependency-type: "all"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/cackle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: cackle check and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: cackle-rs/cackle-action@latest
- name: Install libpam-dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Containerfile --tag pam-auth-test:$(date +%s)
34 changes: 30 additions & 4 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ on:
# The branches below must be a subset of the branches above
branches: [ "MAIN" ]

env:
CARGO_TERM_COLOR: always

jobs:
rust-clippy-analyze:
name: Run rust-clippy analyzing
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
Expand All @@ -27,8 +33,23 @@ jobs:
components: clippy
override: true

- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt
- name: Install clippy-sarif
uses: baptiste0928/[email protected]
env:
RUSTC_WRAPPER: ""
with:
crate: clippy-sarif

- name: Install sarif-fmt
uses: baptiste0928/[email protected]
env:
RUSTC_WRAPPER: ""
with:
crate: sarif-fmt

- name: Sccache Action
uses: Mozilla-Actions/[email protected]


- name: Run rust-clippy
run:
Expand All @@ -38,7 +59,12 @@ jobs:
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
category: clippy-full
wait-for-processing: true

- name: Run rust-clippy for check
run:
cargo clippy --all-features
Loading

0 comments on commit 86e7a79

Please sign in to comment.