Skip to content

Commit 475b95c

Browse files
committed
Fix all github actions errors from new super-linter
1 parent 4ea992a commit 475b95c

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
810

911
steps:
1012
# Important: This sets up your GITHUB_WORKSPACE environment variable
1113
- uses: actions/checkout@v5
14+
with:
15+
persist-credentials: false
1216

1317
- name: Lint Ansible Playbook
1418
uses: ansible/ansible-lint@50373efb440dd3b524956c075af715cd00eaf20b

.github/workflows/jsonschema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ jobs:
1010
matrix:
1111
python-version: [3.11]
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315

1416
steps:
1517
- name: Checkout Code
1618
uses: actions/checkout@v5
19+
with:
20+
persist-credentials: false
1721

1822
- name: Set up Python ${{ matrix.python-version }}
1923
uses: actions/setup-python@v5
@@ -26,7 +30,7 @@ jobs:
2630
pip install check-jsonschema
2731
2832
- name: Install yq
29-
uses: chrisdickinson/setup-yq@latest
33+
uses: chrisdickinson/setup-yq@69aa9efdf7a9240129b103a65373c05cbc375679 # v1.0.0
3034
with:
3135
yq-version: v4.30.7
3236

.github/workflows/superlinter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ jobs:
99
name: Super linter
1010
# Set the agent to run on
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
statuses: write
1215

1316
steps:
1417
- name: Checkout Code
1518
uses: actions/checkout@v5
1619
with:
1720
# Full git history is needed to get a proper list of changed files within `super-linter`
1821
fetch-depth: 0
22+
persist-credentials: false
1923

2024
################################
2125
# Run Linter against code base #

.github/workflows/sync-rhdp-branch.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ jobs:
1313
github.repository_owner == 'validatedpatterns'
1414
runs-on: ubuntu-latest
1515
name: Git Sync branch
16+
permissions:
17+
contents: write
18+
pull-requests: write
1619
steps:
1720
- name: Checkout
1821
uses: actions/checkout@v5
22+
with:
23+
persist-credentials: false
1924
- name: Set up Node
2025
uses: actions/setup-node@v4
2126
with:
2227
node-version: 20
2328
- name: Opening pull request
2429
id: pull
25-
uses: mbaldessari/[email protected]
30+
uses: mbaldessari/git-sync-branch@dd2adf0ca96e52c64716d83cabe85fac33201e12 # v0.2.0
2631
with:
2732
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2833
FROM_BRANCH: "main"

.github/workflows/update-metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
contents: read # Required for "read-all"
1919
packages: write # Allows writing to packages
2020
id-token: write # Allows creating OpenID Connect (OIDC) tokens
21-
secrets: inherit
21+
secrets:
22+
DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }}
2223
# For testing you can point to a different branch in the docs repository
2324
# with:
2425
# DOCS_BRANCH: "main"

0 commit comments

Comments
 (0)