From 22db7e4d133937d14435943c94c1e59f47186450 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sun, 2 Mar 2025 16:09:27 +0100 Subject: [PATCH 1/2] new year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d1e078e..3f76ee5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2024 CrazyMax +Copyright (c) 2021-2025 CrazyMax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 8ae9a9bded2d11df5ebd4cbde45efe6a54fd7976 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sun, 2 Mar 2025 16:09:36 +0100 Subject: [PATCH 2/2] ci: set contents read as default workflow permissions --- .github/workflows/ci.yml | 4 ++++ .github/workflows/labels.yml | 9 +++++++++ .github/workflows/validate.yml | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15ff2fe..d16b04b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions +permissions: + contents: read + on: schedule: - cron: '0 */4 * * *' diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 1342d9e..c0900a8 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -4,6 +4,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions +permissions: + contents: read + on: push: branches: @@ -19,6 +23,11 @@ on: jobs: labeler: runs-on: ubuntu-latest + permissions: + # same as global permissions + contents: read + # required to update labels + issues: write steps: - name: Checkout diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a28f09c..1a6a7ca 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -4,6 +4,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions +permissions: + contents: read + on: push: branches: