Skip to content

Commit d8752f4

Browse files
committed
update workflow permissions
1 parent d209915 commit d8752f4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/apigee-release-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ defaults:
44
shell: bash # Explicitly sets pipeline to fail if any subprocess fails
55
on:
66
push
7-
permissions: read-all
7+
permissions:
8+
contents: read
89

910
jobs:
1011
deploy-hello-world:

.github/workflows/continous-integration-workflow.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ jobs:
5050
run: make check-licenses
5151

5252
- name: Set SPEC_VERSION env var
53-
run: echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
54-
env:
55-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
53+
run: echo "SPEC_VERSION=$(poetry run python scripts/calculate_version.py)" >> "$GITHUB_ENV"
5654

5755
- name: Create release (master only)
5856
id: create-release

.github/workflows/spec-release-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ defaults:
44
shell: bash # Explicitly sets pipeline to fail if any subprocess fails
55
on:
66
push
7-
permissions: read-all
7+
permissions:
8+
contents: read
89

910
jobs:
1011
deploy-hello-world-spec:

0 commit comments

Comments
 (0)