Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ env:
# renovate: datasource=github-releases depName=PSScriptAnalyzer packageName=PowerShell/PSScriptAnalyzer
PSSCRIPTANALYZER_VERSION: '1.24.0'
TERM: xterm
# renovate: datasource=github-releases depName=zizmor packageName=zizmorcore/zizmor
ZIZMOR_VERSION: '1.12.1'

jobs:
lint:
runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

steps:

Expand All @@ -40,11 +44,17 @@ jobs:
- name: Add actionlint problem matcher
run: echo "::add-matcher::.github/actionlint-matcher.json"

- name: Lint workflows
- name: Lint workflows with actionlint
uses: docker://rhysd/actionlint:1.7.7@sha256:887a259a5a534f3c4f36cb02dca341673c6089431057242cdc931e9f133147e9
with:
args: -color

- name: Lint workflows with zizmor
uses: zizmorcore/zizmor-action@5ca5fc7a4779c5263a3ffa0e1f693009994446d1 # v0.1.2
with:
persona: pedantic
version: ${{ env.ZIZMOR_VERSION }}

- name: Lint markdown
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # v20.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- cron: '0 5 * * MON'
workflow_dispatch:

permissions: read-all
permissions: read-all # zizmor: ignore[excessive-permissions] Recommended permissions for OSSF Scorecard

jobs:
analysis:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: 'tree:0'
persist-credentials: true # zizmor: ignore[artipacked] Needed to push commits
show-progress: false
token: ${{ secrets.COSTELLOBOT_TOKEN }}

Expand All @@ -43,7 +44,7 @@ jobs:
script: |
const { repo, owner } = context.repo;
const draft = process.env.DRAFT === 'true';

let version = process.env.VERSION;

if (version.startsWith('v')) {
Expand Down