diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index e0622c9..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - reviewers: - - "fabasoad" - labels: - - "dependencies" diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 6840366..7a9777a 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -11,3 +11,5 @@ jobs: pre-commit: name: Pre-commit uses: fabasoad/reusable-workflows/.github/workflows/wf-pre-commit.yml@main + permissions: + contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69417cc..05e5231 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,5 +10,7 @@ jobs: github: name: GitHub uses: fabasoad/reusable-workflows/.github/workflows/wf-github-release.yml@main + permissions: + contents: write with: bump-tags: false diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index fcdd924..0156746 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -18,10 +18,10 @@ on: # yamllint disable-line rule:truthy jobs: sast: name: SAST + uses: fabasoad/reusable-workflows/.github/workflows/wf-security-sast.yml@main permissions: contents: read security-events: write - uses: fabasoad/reusable-workflows/.github/workflows/wf-security-sast.yml@main with: - code-scanning: ${{ (inputs.security-type || 'all') == 'all' || inputs.security-type == 'code-scanning' }} - sca: ${{ (inputs.security-type || 'all') == 'all' || inputs.security-type == 'sca' }} + code-scanning: ${{ contains(fromJSON('["all", "code-scanning"]'), github.event.inputs.security-type || 'all') }} + sca: ${{ contains(fromJSON('["all", "sca"]'), github.event.inputs.security-type || 'all') }} diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 42caa8b..5e5343f 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -11,3 +11,7 @@ jobs: maintenance: name: Maintenance uses: fabasoad/reusable-workflows/.github/workflows/wf-sync-labels.yml@main + permissions: + contents: write + issues: write + pull-requests: write diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index c916455..e595efc 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -19,6 +19,6 @@ jobs: timeout-minutes: 5 steps: - name: Checkout ${{ github.repository }} - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Run tests run: make test diff --git a/.github/workflows/update-license.yml b/.github/workflows/update-license.yml index 3b2f09d..07adda6 100644 --- a/.github/workflows/update-license.yml +++ b/.github/workflows/update-license.yml @@ -10,3 +10,6 @@ jobs: maintenance: name: Maintenance uses: fabasoad/reusable-workflows/.github/workflows/wf-update-license.yml@main + permissions: + contents: write + pull-requests: write