Skip to content

Commit

Permalink
style: cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed May 23, 2024
1 parent 47e71cf commit 19cf46f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/allo-allo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"
egress-policy: "audit"

- name: "AlloAllo"
uses: "mechanical-ink/allo-allo@a73509525c37fba22bc0d0c4a076c6d6b963fb06" # v1.0.1
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/cache-clear.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/cleanup-branch-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
name: "Cleanup caches by a branch"

on: # yamllint disable-line rule:truthy
pull_request:
types:
- "closed"
workflow_dispatch: # yamllint disable-line rule:empty-values
workflow_call:
inputs:
target-repo:
Expand All @@ -15,8 +19,8 @@ jobs:
permissions:
# `actions:write` permission is required to delete caches
# See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
actions: write
contents: read
actions: "write"
contents: "read"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lock-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on: # yamllint disable-line rule:truthy
description: "Labels to add before locking an issue, value must be a comma separated list of labels or ''"
default: "bot: closed"
required: false
type: string
type: "string"

permissions:
issues: "write"
Expand All @@ -62,7 +62,7 @@ jobs:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"
egress-policy: "audit"

- uses: "dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771" # v5.0.1
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/set-default-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ In the repository that will call this action, you will need to create the follow
- name: "breaking change"
description: "Cannot be merged when next version is not a major release"
color: "B05D08"

```
You can find more details about the above on the [ghaction-github-labeler](https://github.com/crazy-max/ghaction-github-labeler). The next item you need to create in the repository that will call this action, is a workflow file. You can name the file `workflows/set-default-labels.yml` and add the following content:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/set-default-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"
egress-policy: "audit"

- name: "Git checkout"
uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # v4.1.1
Expand Down

0 comments on commit 19cf46f

Please sign in to comment.