File tree Expand file tree Collapse file tree 7 files changed +12
-26
lines changed Expand file tree Collapse file tree 7 files changed +12
-26
lines changed Original file line number Diff line number Diff line change 1
1
name : " Lint PR title"
2
-
3
2
on :
4
3
pull_request_target :
5
4
types :
14
13
name : Validate PR title
15
14
runs-on : ubuntu-latest
16
15
steps :
17
- - uses : amannn/action-semantic-pull-request@v5
16
+ - uses : amannn/action-semantic-pull-request@b6bca70dcd3e56e896605356ce09b76f7e1e0d39 # ratchet:amannn/action-semantic-pull-request@ v5
18
17
env :
19
18
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
19
with :
Original file line number Diff line number Diff line change 1
- ---
2
1
name : PR opened
3
-
4
2
on :
5
3
pull_request_target :
6
4
# GITHUB_TOKEN is readonly and the action will fail for Dependabot
15
13
permissions :
16
14
pull-requests : write
17
15
steps :
18
- - uses : actions/github-script@v6
16
+ - uses : actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # ratchet:actions/github-script@ v6
19
17
with :
20
18
script : |
21
19
// adds a comment to the PR (there is the issue API only which works work PRs too)
Original file line number Diff line number Diff line change 1
1
name : Release
2
-
3
2
on :
4
3
push :
5
4
branches :
6
5
- main
7
-
6
+
8
7
jobs :
9
8
release :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Get app installation token
13
-
12
+ uses : npalm/action-app-token@dd4bb16d91ced5659bc618705c96b822c5a42136 # ratchet:npalm/action-app-token@ v1.1.0
14
13
id : token
15
14
with :
16
15
appId : ${{ secrets.APP_ID }}
17
16
appPrivateKeyBase64 : ${{ secrets.APP_PRIVATE_KEY_BASE64 }}
18
17
appInstallationType : repo
19
18
appInstallationValue : ${{ github.repository }}
20
-
21
19
# bootstrap-sha and release-as needs to be removed after first release
22
20
- name : Release
23
- uses : google-github-actions/release-please-action@v3
21
+ uses : google-github-actions/release-please-action@d3c71f9a0a55385580de793de58da057b3560862 # ratchet:google-github-actions/release-please-action@ v3
24
22
with :
25
23
release-type : terraform-module
26
24
token : ${{ steps.token.outputs.token }}
Original file line number Diff line number Diff line change 1
- ---
2
1
name : Execute ChatOps command
3
-
4
2
on :
5
3
repository_dispatch :
6
- types :
4
+ types :
7
5
- help-command
8
6
9
7
jobs :
16
14
run : |
17
15
maintainer=$(cat CODEOWNERS | grep -oE "@[a-zA-Z0-9_-]+" | shuf -n 1)
18
16
echo "maintainer=$maintainer" >> "$GITHUB_OUTPUT"
19
-
20
17
- name : Create comment
21
- uses : actions/github-script@v6
18
+ uses : actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # ratchet:actions/github-script@ v6
22
19
with :
23
20
script : |
24
21
// adds a comment to the PR (there is the issue API, which works work PRs too)
Original file line number Diff line number Diff line change 1
- ---
2
1
name : PR commented
3
-
4
2
on :
5
3
issue_comment :
6
4
types :
11
9
runs-on : ubuntu-latest
12
10
steps :
13
11
- name : Slash Command Dispatch
14
- uses : peter-evans/slash-command-dispatch@v3
12
+ uses : peter-evans/slash-command-dispatch@a28ee6cd74d5200f99e247ebc7b365c03ae0ef3c # ratchet:peter-evans/slash-command-dispatch@ v3
15
13
with :
16
14
token : ${{ secrets.GITHUB_TOKEN }}
17
15
issue-type : pull-request
Original file line number Diff line number Diff line change 1
1
name : ' Close stale issues and PRs'
2
-
3
2
on :
4
3
schedule :
5
4
- cron : ' 25 2 * * *'
8
7
stale :
9
8
runs-on : ubuntu-latest
10
9
steps :
11
- - uses : actions/stale@v7
10
+ - uses : actions/stale@6f05e4244c9a0b2ed3401882b05d701dd0a7289b # ratchet:actions/stale@ v7
12
11
with :
13
12
stale-issue-message : ' This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.'
14
13
stale-pr-message : ' This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.'
Original file line number Diff line number Diff line change 1
1
name : Update docs
2
-
3
2
on :
4
3
push :
5
4
branches :
10
9
# update docs after merge back to develop
11
10
name : Auto update terraform docs
12
11
runs-on : ubuntu-latest
13
-
14
12
steps :
15
13
- name : Checkout branch
16
- uses : actions/checkout@v3
17
-
14
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3
18
15
- name : Generate TF docs
19
- uses :
terraform-docs/[email protected]
16
+ uses : terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # ratchet:terraform-docs/gh-actions@ v1.0.0
20
17
with :
21
18
find-dir : .
22
19
git-commit-message : " docs: auto update terraform docs"
23
- git-push : true
20
+ git-push : true
You can’t perform that action at this time.
0 commit comments