diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..221d178 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + groups: + cargo-minor-and-patch: + update-types: + - "minor" + - "patch" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 5 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..4cf40da --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: CodeQL + +on: + push: + branches: [ "m" ] + pull_request: + branches: [ "m" ] + +permissions: read-all + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + packages: read + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: rust + build-mode: none + + steps: + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.30.7 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.30.7 + with: + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a7bc0c6..c2ab6bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,9 @@ on: name: Publish +permissions: + contents: read + env: CARGO_TERM_COLOR: always CARGO_NET_GIT_FETCH_WITH_CLI: true diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 4a5e965..cb02091 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -1,5 +1,8 @@ name: Check README +permissions: + contents: read + on: pull_request: branches: [ "*" ] diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0e0712c..a4ca17f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,5 +1,8 @@ name: Rust +permissions: + contents: read + on: pull_request: branches: [ "*" ]