diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c32bb82..e3964c1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-tags: true ref: main diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd922f9..378c0c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup Docker BuildX id: setup-buildx diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index f7db77c..26fd4f7 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -38,4 +38,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LINTER_RULES_PATH: ${{ github.workspace }} VALIDATE_ALL_CODEBASE: false + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false VALIDATE_GITHUB_ACTIONS_ZIZMOR: false diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 2267b3b..c9313a3 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-tags: true diff --git a/Dockerfile b/Dockerfile index e81584f..23c4ae4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,12 @@ WORKDIR /usr/src # Copy any source file(s) required for the action. COPY entrypoint.sh . +# Create a non-root user and switch to it. +RUN addgroup -S actiongroup && adduser -S actionuser -G actiongroup && \ + chown -R actionuser:actiongroup /usr/src && \ + chmod +x /usr/src/entrypoint.sh + +USER actionuser + # Configure the container to be run as an executable. ENTRYPOINT ["/usr/src/entrypoint.sh"]